View Source ExTDLib.Object.User (ExTDLib v0.0.4)

Represents a user.

NameTypeDescription
idstringUser identifier.
first_namestringFirst name of the user.
last_namestringLast name of the user.
usernamesusernamesUsernames of the user; may be null.
phone_numberstringPhone number of the user.
statusUserStatusCurrent online status of the user.
profile_photoprofilePhotoProfile photo of the user; may be null.
accent_color_idnumberIdentifier of the accent color for name, and backgrounds of profile photo, reply header, and link preview. For Telegram Premium users only.
background_custom_emoji_idstringIdentifier of a custom emoji to be shown on the reply header background; 0 if none. For Telegram Premium users only.
profile_accent_color_idnumberIdentifier of the accent color for the user's profile; -1 if none. For Telegram Premium users only.
profile_background_custom_emoji_idstringIdentifier of a custom emoji to be shown on the background of the user's profile; 0 if none. For Telegram Premium users only.
emoji_statusemojiStatusEmoji status to be shown instead of the default Telegram Premium badge; may be null. For Telegram Premium users only.
is_contactboolThe user is a contact of the current user.
is_mutual_contactboolThe user is a contact of the current user and the current user is a contact of the user.
is_close_friendboolThe user is a close friend of the current user; implies that the user is a contact.
is_verifiedboolTrue, if the user is verified.
is_premiumboolTrue, if the user is a Telegram Premium user.
is_supportboolTrue, if the user is Telegram support account.
restriction_reasonstringIf non-empty, it contains a human-readable description of the reason why access to this user must be restricted.
is_scamboolTrue, if many users reported this user as a scam.
is_fakeboolTrue, if many users reported this user as a fake account.
has_active_storiesboolTrue, if the user has non-expired stories available to the current user.
has_unread_active_storiesboolTrue, if the user has unread non-expired stories available to the current user.
have_accessboolIf false, the user is inaccessible, and the only information known about the user is inside this class. Identifier of the user can't be passed to any method.
typeUserTypeType of the user.
language_codestringIETF language tag of the user's language; only available to bots.
added_to_attachment_menuboolTrue, if the user added the current bot to attachment menu; only available to bots.

More details on telegram's documentation.