WebAppInitData class
This object contains data that is transferred to the Mini App when it is opened. It is empty if the Mini App was launched from a keyboard button or from inline mode.
More details at Telegram API
Constructors
- WebAppInitData(WebAppInitDataJSObject _jsInitData)
Properties
- authDate → int?
-
Unix time when the form was opened.
no setter
- canSendAfter → int?
-
Optional. Time in seconds, after which a message can be sent via
the answerWebAppQuery method.
no setter
- chat → WebAppChat?
-
Optional. An object containing data about the chat where
the bot was launched via the attachment menu. Returned for
supergroups, channels and group chats – only for Mini Apps
launched via the attachment menu.
no setter
- chatInstance → String?
-
Optional. Global identifier, uniquely corresponding to the chat from
which the Mini App was opened. Returned only for Mini Apps launched
from a direct link
no setter
- chatType → String?
-
Optional. Type of the chat from which the Mini App was opened.
Can be either “sender” for a private chat with the user opening
the link, “private”, “group”, “supergroup”, or “channel”. Returned
only for Mini Apps launched from direct links.
no setter
- hash → String?
-
A hash of all passed parameters, which the bot server can use
to check their validity.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- queryId → String?
-
Optional. A unique identifier for the Mini App session,
required for sending messages via the answerWebAppQuery method.
no setter
- receiver → WebAppUser?
-
Optional. An object containing data about the chat partner
of the current user in the chat where the bot was launched
via the attachment menu. Returned only for private chats
and only for Mini Apps launched via the attachment menu.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startParam → String?
-
Optional. The value of the startattach parameter, passed via link.
Only returned for Mini Apps when launched from the attachment menu via link.
no setter
- user → WebAppUser?
-
Optional. An object containing data about the current user.
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