User
Represents a user.
This is an alias for the UserUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "user" | |
id | number | User identifier |
firstName | string | First name of the user |
lastName | string | Last name of the user |
username | string | Username of the user |
phoneNumber | string | Phone number of the user |
status | Current online status of the user | |
profilePhoto | Profile photo of the user; may be null | |
isContact | boolean | The user is a contact of the current user |
isMutualContact | boolean | The user is a contact of the current user and the current user is a contact of the user |
isVerified | boolean | True, if the user is verified |
isSupport | boolean | True, if the user is Telegram support account |
restrictionReason | string | If non-empty, it contains a human-readable description of the reason why access to this user must be restricted |
isScam | boolean | True, if many users reported this user as a scam |
isFake | boolean | True, if many users reported this user as a fake account |
haveAccess | boolean | 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 | Type of the user | |
languageCode | string | IETF language tag of the user's language; only available to bots |