TDLib v0.0.2 TDLib.Object.User View Source
Represents a user.
| Name | Type | Description |
|---|---|---|
| id | number | User identifier. |
| first_name | string | First name of the user. |
| last_name | string | Last name of the user. |
| username | string | Username of the user. |
| 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. |
| outgoing_link | LinkState | Relationship from the current user to the other user. |
| incoming_link | LinkState | Relationship from the other user to the current user. |
| is_verified | bool | True, if the user is verified. |
| restriction_reason | string | If non-empty, it contains the reason why access to this user must be restricted. The format of the string is “{type}: {description}”. {type} contains the type of the restriction and at least one of the suffixes “-all”, “-ios”, “-android”, or “-wp”, which describe the platforms on which access should be restricted. (For example, “terms-ios-android”. {description} contains a human-readable description of the restriction, which can be shown to the user.) |
| have_access | bool | If false, the user is inaccessible, and the only information known about the user is inside this class. It can’t be passed to any method except GetUser. |
| type | UserType | Type of the user. |
| language_code | string | IETF language tag of the user’s language; only available to bots. |
More details on telegram’s documentation.