MadelineProtoDocs/old_docs/API_docs_v40/constructors/user.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.6 KiB

title description image
user User https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: user

Back to constructors index

User

Attributes:

Name Type Required Description
id int Yes ID
access_hash long Optional Access hash
first_name string Optional First name
last_name string Optional Last name
username string Optional Username
phone string Optional Phone
photo UserProfilePhoto Optional Photo
status UserStatus Optional Status
bot_info_version int Optional Bot info version

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}