MadelineProto/old_docs/API_docs_v33/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:

$help_appChangelog = '@username'; // Username

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

$help_appChangelog = 'user#44700'; // tg-cli style id (users)
$help_appChangelog = 'chat#492772765'; // tg-cli style id (chats)
$help_appChangelog = '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->users->getUsers

$MadelineProto->contacts->importCard

$MadelineProto->account->updateUsername

$MadelineProto->contacts->resolveUsername

$MadelineProto->account->changePhone