InlineQueryResultGame constructor

const InlineQueryResultGame({
  1. @JsonKey(name: 'type') @Default(InlineQueryResultType.game) InlineQueryResultType type,
  2. @JsonKey(name: 'id') required String id,
  3. @JsonKey(name: 'game_short_name') required String gameShortName,
  4. @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;