Airgram

Guides
/
/
Output types

User

Represents a user.

This is an alias for the UserUnion type.


NameTypeDescription
_"user"
idnumber User identifier
firstNamestring First name of the user
lastNamestring Last name of the user
usernamestring Username of the user
phoneNumberstring Phone number of the user
status Current online status of the user
profilePhoto Profile photo of the user; may be null
isContactboolean The user is a contact of the current user
isMutualContactboolean The user is a contact of the current user and the current user is a contact of the user
isVerifiedboolean True, if the user is verified
isSupportboolean True, if the user is Telegram support account
restrictionReasonstring If non-empty, it contains a human-readable description of the reason why access to this user must be restricted
isScamboolean True, if many users reported this user as a scam
isFakeboolean True, if many users reported this user as a fake account
haveAccessboolean 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
languageCodestring IETF language tag of the user's language; only available to bots