MadelineProtoDocs/old_docs/API_docs_v33/constructors/user.md
2018-04-04 19:52:48 +02:00

1.5 KiB

title description image
user user attributes, type and example https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: user

Back to constructors index

Attributes:

Name Type Required
id int Yes
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];

PWRTelegram json-encoded version:

{"_": "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}