1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-04 09:07:47 +01:00
MadelineProto/old_docs/API_docs_v53/constructors/inputPeerChat.md

872 B

title description
inputPeerChat inputPeerChat attributes, type and example

Constructor: inputPeerChat

Back to constructors index

Attributes:

Name Type Required
chat_id int Required

Type: InputPeer

Example:

$inputPeerChat = ['_' => 'inputPeerChat', 'chat_id' => int, ];

The following syntaxes can also be used:

$inputPeerChat = '@username'; // Username

$inputPeerChat = 44700; // bot API id (users)
$inputPeerChat = -492772765; // bot API id (chats)
$inputPeerChat = -10038575794; // bot API id (channels)

$inputPeerChat = 'user#44700'; // tg-cli style id (users)
$inputPeerChat = 'chat#492772765'; // tg-cli style id (chats)
$inputPeerChat = 'channel#38575794'; // tg-cli style id (channels)