MadelineProto/old_docs/API_docs_v38/constructors/user.md
2017-02-12 20:32:28 +03:00

1001 B

title description
user user attributes, type and example

Constructor: user

Back to constructors index

Attributes:

Name Type Required
id int Required
access_hash long Optional
first_name string Optional
last_name string Optional
username string Optional
phone string Optional
photo UserProfilePhoto Optional
status UserStatus Optional
bot_info_version int Optional

Type: User

Example:

$user = ['_' => 'user', 'id' => int, 'access_hash' => long, 'first_name' => string, 'last_name' => string, 'username' => string, 'phone' => string, 'photo' => UserProfilePhoto, 'status' => UserStatus, 'bot_info_version' => int, ];