InlineQueryResultCachedVoice constructor
const
InlineQueryResultCachedVoice({
- @JsonKey(name: 'id') required String id,
- @JsonKey(name: 'type') @Default(InlineQueryResultType.voice) InlineQueryResultType type,
- @JsonKey(name: 'voice_file_id') required String voiceFileId,
- @JsonKey(name: 'title') required String title,
- @JsonKey(name: 'caption') String? caption,
- @JsonKey(name: 'parse_mode') ParseMode? parseMode,
- @JsonKey(name: 'caption_entities') List<
MessageEntity> ? captionEntities, - @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
- @JsonKey(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent,
Constructs an InlineQueryResultCachedVoice object
Implementation
const factory InlineQueryResultCachedVoice({
/// Unique identifier for this result, 1-64 Bytes
@JsonKey(name: 'id') required String id,
/// Type of the result, always [InlineQueryResultType.voice]
@JsonKey(name: 'type')
@Default(InlineQueryResultType.voice)
InlineQueryResultType type,
/// A valid file identifier for the voice message
@JsonKey(name: 'voice_file_id') required String voiceFileId,
/// Voice message title
@JsonKey(name: 'title') required String title,
/// Optional. Caption, 0-1024 characters after entities parsing
@JsonKey(name: 'caption') String? caption,
/// Optional. Mode for parsing entities in the video caption. See formatting
/// options for more details.
@JsonKey(name: 'parse_mode') ParseMode? parseMode,
/// Optional. List of special entities that appear in the caption, which can
/// be specified instead of parse_mode
@JsonKey(name: 'caption_entities') List<MessageEntity>? captionEntities,
/// Optional. Inline keyboard attached to the message
@JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
/// Optional. Content of the message to be sent instead of the voice message
@JsonKey(name: 'input_message_content')
@InputMessageContentConverter()
InputMessageContent? inputMessageContent,
}) = _InlineQueryResultCachedVoice;