WebAppUser class

This object contains the data of the Mini App user.

More details at Telegram API

Constructors

WebAppUser(WebAppUserJSObject _webAppUser)

Properties

addedToAttachmentMenu bool?
True, if this user added the bot to the attachment menu.
no setter
allowedToWritePm bool?
True, if this user allowed the bot to message them.
no setter
firstName String
First name of the user or bot.
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
A unique identifier for the user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. It has at most 52 significant bits, so a 64-bit integer or a double-precision float type is safe for storing this identifier.
no setter
isBot bool?
True, if this user is a bot. Returns in the receiver field only.
no setter
isPremium bool?
True, if this user is a Telegram Premium user.
no setter
languageCode String?
IETF language tag of the user's language. Returns in user field only.
no setter
lastName String?
Last name of the user or bot.
no setter
photoUrl String?
URL of the user’s profile photo. The photo can be in .jpeg or .svg formats. Only returned for Mini Apps launched from the attachment menu.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
Username of the user or bot.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toReadableString() String
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited