InlineQueryResultMpeg4Gif constructor
const
InlineQueryResultMpeg4Gif({
- @JsonKey(name: 'type') @Default(InlineQueryResultType.mpeg4Gif) InlineQueryResultType type,
- @JsonKey(name: 'id') required String id,
- @JsonKey(name: 'mpeg4_url') required String mpeg4Url,
- @JsonKey(name: 'thumbnail_url') required String thumbnailUrl,
- @JsonKey(name: 'mpeg4_width') int? mpeg4Width,
- @JsonKey(name: 'mpeg4_height') int? mpeg4Height,
- @JsonKey(name: 'mpeg4_duration') int? mpeg4Duration,
- @JsonKey(name: 'thumbnail_mime_type') String? thumbnailMimeType,
- @JsonKey(name: 'title') 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,
- @JsonKey(name: 'show_caption_above_media') bool? showCaptionAboveMedia,
Constructs an InlineQueryResultMpeg4Gif object
Implementation
const factory InlineQueryResultMpeg4Gif({
/// Type of the result, always [InlineQueryResultType.mpeg4Gif]
@JsonKey(name: 'type')
@Default(InlineQueryResultType.mpeg4Gif)
InlineQueryResultType type,
/// Unique identifier for this result, 1-64 Bytes
@JsonKey(name: 'id') required String id,
/// A valid URL for the MPEG4 file. File size must not exceed 1MB
@JsonKey(name: 'mpeg4_url') required String mpeg4Url,
/// URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result
@JsonKey(name: 'thumbnail_url') required String thumbnailUrl,
/// Optional. Video width
@JsonKey(name: 'mpeg4_width') int? mpeg4Width,
/// Optional. Video height
@JsonKey(name: 'mpeg4_height') int? mpeg4Height,
/// Optional. Video duration
@JsonKey(name: 'mpeg4_duration') int? mpeg4Duration,
/// Optional. MIME type of the thumbnail, must be one of "image/jpeg", "image/gif", or "video/mp4". Defaults to "image/jpeg"
@JsonKey(name: 'thumbnail_mime_type') String? thumbnailMimeType,
/// Optional. Title for the result
@JsonKey(name: 'title') String? title,
/// Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
@JsonKey(name: 'caption') String? caption,
/// Optional. Mode for parsing entities in the 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 video animation
@JsonKey(name: 'input_message_content')
@InputMessageContentConverter()
InputMessageContent? inputMessageContent,
/// Optional. True, if the caption must be shown above the message media
@JsonKey(name: 'show_caption_above_media') bool? showCaptionAboveMedia,
}) = _InlineQueryResultMpeg4Gif;