InlineQueryResultGame constructor
const
InlineQueryResultGame({
- @JsonKey(name: 'type') @Default(InlineQueryResultType.game) InlineQueryResultType type,
- @JsonKey(name: 'id') required String id,
- @JsonKey(name: 'game_short_name') required String gameShortName,
- @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
Constructs an InlineQueryResultGame object
Implementation
const factory InlineQueryResultGame({
/// Type of the result, always [InlineQueryResultType.game]
@JsonKey(name: 'type')
@Default(InlineQueryResultType.game)
InlineQueryResultType type,
/// Unique identifier for this result, 1-64 Bytes
@JsonKey(name: 'id') required String id,
/// Short name of the game
@JsonKey(name: 'game_short_name') required String gameShortName,
/// Optional. Inline keyboard attached to the message
@JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
}) = _InlineQueryResultGame;