1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-12 13:07:23 +01:00
MadelineProto/old_docs/API_docs_v42/constructors/peerUser.md

802 B

title description
peerUser peerUser attributes, type and example

Constructor: peerUser

Back to constructors index

Attributes:

Name Type Required
user_id int Required

Type: Peer

Example:

$peerUser = ['_' => 'peerUser', 'user_id' => int, ];

The following syntaxes can also be used:

$peerUser = '@username'; // Username

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

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