InlineQueryResultCachedSticker constructor
const
InlineQueryResultCachedSticker({
- @JsonKey(name: 'id') required String id,
- @JsonKey(name: 'sticker_file_id') required String stickerFileId,
- @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
- @JsonKey(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent,
- @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;