View Source ExTDLib.Object.User (ExTDLib v0.0.4)
Represents a user.
| Name | Type | Description |
|---|---|---|
| id | string | User identifier. |
| first_name | string | First name of the user. |
| last_name | string | Last name of the user. |
| usernames | usernames | Usernames of the user; may be null. |
| phone_number | string | Phone number of the user. |
| status | UserStatus | Current online status of the user. |
| profile_photo | profilePhoto | Profile photo of the user; may be null. |
| accent_color_id | number | Identifier of the accent color for name, and backgrounds of profile photo, reply header, and link preview. For Telegram Premium users only. |
| background_custom_emoji_id | string | Identifier of a custom emoji to be shown on the reply header background; 0 if none. For Telegram Premium users only. |
| profile_accent_color_id | number | Identifier of the accent color for the user's profile; -1 if none. For Telegram Premium users only. |
| profile_background_custom_emoji_id | string | Identifier of a custom emoji to be shown on the background of the user's profile; 0 if none. For Telegram Premium users only. |
| emoji_status | emojiStatus | Emoji status to be shown instead of the default Telegram Premium badge; may be null. For Telegram Premium users only. |
| is_contact | bool | The user is a contact of the current user. |
| is_mutual_contact | bool | The user is a contact of the current user and the current user is a contact of the user. |
| is_close_friend | bool | The user is a close friend of the current user; implies that the user is a contact. |
| is_verified | bool | True, if the user is verified. |
| is_premium | bool | True, if the user is a Telegram Premium user. |
| is_support | bool | True, if the user is Telegram support account. |
| restriction_reason | string | If non-empty, it contains a human-readable description of the reason why access to this user must be restricted. |
| is_scam | bool | True, if many users reported this user as a scam. |
| is_fake | bool | True, if many users reported this user as a fake account. |
| has_active_stories | bool | True, if the user has non-expired stories available to the current user. |
| has_unread_active_stories | bool | True, if the user has unread non-expired stories available to the current user. |
| have_access | bool | If 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. |
| type | UserType | Type of the user. |
| language_code | string | IETF language tag of the user's language; only available to bots. |
| added_to_attachment_menu | bool | True, if the user added the current bot to attachment menu; only available to bots. |
More details on telegram's documentation.