CallbackQuery constructor
const
CallbackQuery({
- @JsonKey.new(name: 'id') required String id,
- @JsonKey.new(name: 'from') required User from,
- @JsonKey.new(name: 'message') MaybeInaccessibleMessage? message,
- @JsonKey.new(name: 'inline_message_id') String? inlineMessageId,
- @JsonKey.new(name: 'chat_instance') required String chatInstance,
- @JsonKey.new(name: 'data') String? data,
- @JsonKey.new(name: 'game_short_name') String? gameShortName,
Creates an incoming callback query
idUnique identifier for this queryfromSendermessageMessage sent by the bot with the callback button that originated the queryinlineMessageIdIdentifier of the message sent via the bot in inline modechatInstanceGlobal identifier for the chat with the callback buttondataData associated with the callback buttongameShortNameShort 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;