represents a Telegram user or bot
User's or bot's first name
Unique identifier for this user or bot.
Optional
inTrue, if this user added the bot to the attachment menu
True, if this user is a bot
Optional
isTrue, if this user is a Telegram Premium user
Optional
languageIETF language tag of the user's language
Optional
lastUser's or bot's last name
Optional
usernameUser's or bot's username
The client that instantiated this
Protected
_cloneProtected
_updateChecks if this user is equal to another user.
The other object to compare with.
True if both objects are instances of User and are equal based on key properties, otherwise false.
Use this method to get a list of profile pictures for a user.
Optional
offset: numberSequential number of the first photo to be returned. By default, all photos are returned
Optional
limit: numberLimits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100
Returns a UserProfilePhotos object.
Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change).
An array describing the errors
Returns True on success.
The client that instantiated this