TDLib v0.0.2 TDLib.Object.User View Source

Represents a user.

NameTypeDescription
idnumberUser identifier.
first_namestringFirst name of the user.
last_namestringLast name of the user.
usernamestringUsername of the user.
phone_numberstringPhone number of the user.
statusUserStatusCurrent online status of the user.
profile_photoprofilePhotoProfile photo of the user; may be null.
outgoing_linkLinkStateRelationship from the current user to the other user.
incoming_linkLinkStateRelationship from the other user to the current user.
is_verifiedboolTrue, if the user is verified.
restriction_reasonstringIf 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_accessboolIf 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.
typeUserTypeType of the user.
language_codestringIETF language tag of the user’s language; only available to bots.

More details on telegram’s documentation.