InlineQueryResultCachedSticker constructor

const InlineQueryResultCachedSticker({
  1. @JsonKey(name: 'id') required String id,
  2. @JsonKey(name: 'sticker_file_id') required String stickerFileId,
  3. @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
  4. @JsonKey(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent,
  5. @JsonKey(name: 'type') @Default(InlineQueryResultType.sticker) InlineQueryResultType type,
})

Constructs an InlineQueryResultCachedSticker object

Implementation

const factory InlineQueryResultCachedSticker({
  /// Unique identifier for this result, 1-64 Bytes
  @JsonKey(name: 'id') required String id,

  /// A valid file identifier of the sticker
  @JsonKey(name: 'sticker_file_id') required String stickerFileId,

  /// Optional. Inline keyboard attached to the message
  @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,

  /// Optional. Content of the message to be sent instead of the sticker
  @JsonKey(name: 'input_message_content')
  @InputMessageContentConverter()
  InputMessageContent? inputMessageContent,

  /// Type of the result, always [InlineQueryResultType.sticker]
  @JsonKey(name: 'type')
  @Default(InlineQueryResultType.sticker)
  InlineQueryResultType type,
}) = _InlineQueryResultCachedSticker;