mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 07:34:41 +01:00
2.3 KiB
2.3 KiB
title | description |
---|---|
user | user attributes, type and example |
Constructor: user
Attributes:
Name | Type | Required |
---|---|---|
self | Bool | Optional |
contact | Bool | Optional |
mutual_contact | Bool | Optional |
deleted | Bool | Optional |
bot | Bool | Optional |
bot_chat_history | Bool | Optional |
bot_nochats | Bool | Optional |
verified | Bool | Optional |
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', 'self' => Bool, 'contact' => Bool, 'mutual_contact' => Bool, 'deleted' => Bool, 'bot' => Bool, 'bot_chat_history' => Bool, 'bot_nochats' => Bool, 'verified' => Bool, '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", "self": Bool, "contact": Bool, "mutual_contact": Bool, "deleted": Bool, "bot": Bool, "bot_chat_history": Bool, "bot_nochats": Bool, "verified": Bool, "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', self=Bool, contact=Bool, mutual_contact=Bool, deleted=Bool, bot=Bool, bot_chat_history=Bool, bot_nochats=Bool, verified=Bool, id=int, access_hash=long, first_name='string', last_name='string', username='string', phone='string', photo=UserProfilePhoto, status=UserStatus, bot_info_version=int}