MadelineProtoDocs/old_docs/API_docs_v33/constructors/user.md
2019-12-27 17:48:04 +01:00

1.6 KiB

title description image
user Indicates info about a certain user https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: user

Back to constructors index

Indicates info about a certain user

Attributes:

Name Type Required Description
id int Yes ID of the user
access_hash long Optional Access hash of the user
first_name string Optional First name
last_name string Optional Last name
username string Optional Username
phone string Optional Phone number
photo UserProfilePhoto Optional Profile picture of user
status UserStatus Optional Online status of user
bot_info_version int Optional Version of the bot_info field in userFull, incremented every time it changes

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];

Or, if you're into Lua:

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}