Indicates info about a certain user
user#938458c1 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
self | flags.10?true | Whether this user indicates the currently logged in user |
contact | flags.11?true | Whether this user is a contact |
mutual_contact | flags.12?true | Whether this user is a mutual contact |
deleted | flags.13?true | Whether the account of this user was deleted |
bot | flags.14?true | Is this user a bot? |
bot_chat_history | flags.15?true | Can the bot see all messages in groups? |
bot_nochats | flags.16?true | Can the bot be added to groups? |
verified | flags.17?true | Whether this user is verified |
restricted | flags.18?true | Access to this user must be restricted for the reason specified in restriction_reason |
min | flags.20?true | See min |
bot_inline_geo | flags.21?true | Whether the bot can request our geolocation in inline mode |
support | flags.23?true | Whether this is an official support user |
scam | flags.24?true | This may be a scam user |
apply_min_photo | flags.25?true | If set, the profile picture for this user should be refetched |
id | int | ID of the user |
access_hash | flags.0?long | Access hash of the user |
first_name | flags.1?string | First name |
last_name | flags.2?string | Last name |
username | flags.3?string | Username |
phone | flags.4?string | Phone number |
photo | flags.5?UserProfilePhoto | Profile picture of user |
status | flags.6?UserStatus | Online status of user |
bot_info_version | flags.14?int | Version of the bot_info field in userFull, incremented every time it changes |
restriction_reason | flags.18?Vector<RestrictionReason> | Contains the reason why access to this user must be restricted. |
bot_inline_placeholder | flags.19?string | Inline placeholder for this inline bot |
lang_code | flags.22?string | Language code of the user |
In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.
Extended user info