1.6 KiB
1.6 KiB
title | description | image |
---|---|---|
user | User | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: user
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}