mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-04 20:07:50 +01:00
946 B
946 B
title | description |
---|---|
inputPeerUser | inputPeerUser attributes, type and example |
Constructor: inputPeerUser
Attributes:
Name | Type | Required |
---|---|---|
user_id | int | Required |
access_hash | long | Required |
Type: InputPeer
Example:
$inputPeerUser = ['_' => 'inputPeerUser', 'user_id' => int, 'access_hash' => long, ];
The following syntaxes can also be used:
$inputPeerUser = '@username'; // Username
$inputPeerUser = 44700; // bot API id (users)
$inputPeerUser = -492772765; // bot API id (chats)
$inputPeerUser = -10038575794; // bot API id (channels)
$inputPeerUser = 'user#44700'; // tg-cli style id (users)
$inputPeerUser = 'chat#492772765'; // tg-cli style id (chats)
$inputPeerUser = 'channel#38575794'; // tg-cli style id (channels)