CallbackQuery constructor
const
CallbackQuery({
- @JsonKey(name: 'id') required String id,
- @JsonKey(name: 'from') required User from,
- @JsonKey(name: 'message') MaybeInaccessibleMessage? message,
- @JsonKey(name: 'inline_message_id') String? inlineMessageId,
- @JsonKey(name: 'chat_instance') required String chatInstance,
- @JsonKey(name: 'data') String? data,
- @JsonKey(name: 'game_short_name') String? gameShortName,
Creates an incoming callback query
id
Unique identifier for this queryfrom
Sendermessage
Message sent by the bot with the callback button that originated the queryinlineMessageId
Identifier of the message sent via the bot in inline modechatInstance
Global identifier for the chat with the callback buttondata
Data associated with the callback buttongameShortName
Short name of a Game to be returned
Implementation
const factory CallbackQuery({
/// Unique identifier for this query
@JsonKey(name: 'id') required String id,
/// Sender
@JsonKey(name: 'from') required User from,
/// Optional. Message sent by the bot with the callback button that
/// originated the query
@JsonKey(name: 'message') MaybeInaccessibleMessage? message,
/// Optional. Identifier of the message sent via the bot in inline mode,
/// that originated the query.
@JsonKey(name: 'inline_message_id') String? inlineMessageId,
/// Global identifier, uniquely corresponding to the chat to which the
/// message with the callback button was sent. Useful for high scores in
/// games.
@JsonKey(name: 'chat_instance') required String chatInstance,
/// Optional. Data associated with the callback button. Be aware that the
/// message originated the query can contain no callback buttons with this
/// data.
@JsonKey(name: 'data') String? data,
/// Optional. Short name of a Game to be returned, serves as the unique
/// identifier for the game
@JsonKey(name: 'game_short_name') String? gameShortName,
}) = _CallbackQuery;