InlineQueryResultCachedVideo constructor

const InlineQueryResultCachedVideo({
  1. @JsonKey(name: 'id') required String id,
  2. @JsonKey(name: 'video_file_id') required String videoFileId,
  3. @JsonKey(name: 'title') required String title,
  4. @JsonKey(name: 'description') String? description,
  5. @JsonKey(name: 'caption') String? caption,
  6. @JsonKey(name: 'parse_mode') ParseMode? parseMode,
  7. @JsonKey(name: 'caption_entities') List<MessageEntity>? captionEntities,
  8. @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
  9. @JsonKey(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent,
  10. @JsonKey(name: 'show_caption_above_media') bool? showCaptionAboveMedia,
  11. @JsonKey(name: 'type') @Default(InlineQueryResultType.video) InlineQueryResultType type,
})

Constructs an InlineQueryResultCachedVideo object

Implementation

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

  /// A valid file identifier for the video file
  @JsonKey(name: 'video_file_id') required String videoFileId,

  /// Title for the result
  @JsonKey(name: 'title') required String title,

  /// Optional. Short description of the result
  @JsonKey(name: 'description') String? description,

  /// Optional. Caption of the video to be sent, 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 video
  @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,

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