mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-12 13:07:23 +01:00
802 B
802 B
title | description |
---|---|
peerUser | peerUser attributes, type and example |
Constructor: peerUser
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)