MadelineProto/docs/API_docs/types/User.md
2017-02-12 20:32:28 +03:00

1.2 KiB

title description
User constructors and methods of type User

Type: User

Back to types index

The following syntaxes can also be used:

$phoneCallDiscardReasonBusy = '@username'; // Username

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

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

Possible values (constructors):

userEmpty

user

Methods that return an object of this type (methods):

$MadelineProto->account->updateProfile

$MadelineProto->account->updateUsername

$MadelineProto->account->changePhone

$MadelineProto->users->getUsers

$MadelineProto->contacts->importCard