ExternalReplyInfo constructor

const ExternalReplyInfo({
  1. @JsonKey(name: 'origin') required MessageOrigin origin,
  2. @JsonKey(name: 'chat') Chat? chat,
  3. @JsonKey(name: 'message_id') int? messageId,
  4. @JsonKey(name: 'link_preview_options') LinkPreviewOptions? linkPreviewOptions,
  5. @JsonKey(name: 'animation') Animation? animation,
  6. @JsonKey(name: 'audio') Audio? audio,
  7. @JsonKey(name: 'document') Document? document,
  8. @JsonKey(name: 'photo') List<PhotoSize>? photo,
  9. @JsonKey(name: 'sticker') Sticker? sticker,
  10. @JsonKey(name: 'story') Story? story,
  11. @JsonKey(name: 'video') Video? video,
  12. @JsonKey(name: 'video_note') VideoNote? videoNote,
  13. @JsonKey(name: 'voice') Voice? voice,
  14. @JsonKey(name: 'has_media_spoiler') bool? hasMediaSpoiler,
  15. @JsonKey(name: 'contact') Contact? contact,
  16. @JsonKey(name: 'dice') Dice? dice,
  17. @JsonKey(name: 'game') Game? game,
  18. @JsonKey(name: 'giveaway') Giveaway? giveaway,
  19. @JsonKey(name: 'giveaway_winners') GiveawayWinners? giveawayWinners,
  20. @JsonKey(name: 'invoice') Invoice? invoice,
  21. @JsonKey(name: 'location') Location? location,
  22. @JsonKey(name: 'poll') Poll? poll,
  23. @JsonKey(name: 'venue') Venue? venue,
  24. @JsonKey(name: 'paid_media') PaidMediaInfo? paidMedia,
})

Constructs the ExternalReplyInfo

Implementation

const factory ExternalReplyInfo({
  /// Origin of the message replied to by the given message
  @JsonKey(name: 'origin') required MessageOrigin origin,

  /// Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
  @JsonKey(name: 'chat') Chat? chat,

  /// Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
  @JsonKey(name: 'message_id') int? messageId,

  /// Optional. Options used for link preview generation for the original message, if it is a text message
  @JsonKey(name: 'link_preview_options')
  LinkPreviewOptions? linkPreviewOptions,

  /// Optional. Message is an animation, information about the animation
  @JsonKey(name: 'animation') Animation? animation,

  /// Optional. Message is an audio file, information about the file
  @JsonKey(name: 'audio') Audio? audio,

  /// Optional. Message is a general file, information about the file
  @JsonKey(name: 'document') Document? document,

  /// Optional. Message is a photo, available sizes of the photo
  @JsonKey(name: 'photo') List<PhotoSize>? photo,

  /// Optional. Message is a sticker, information about the sticker
  @JsonKey(name: 'sticker') Sticker? sticker,

  /// Optional. Message is a forwarded story
  @JsonKey(name: 'story') Story? story,

  /// Optional. Message is a video, information about the video
  @JsonKey(name: 'video') Video? video,

  /// Optional. Message is a video note, information about the video message
  @JsonKey(name: 'video_note') VideoNote? videoNote,

  /// Optional. Message is a voice message, information about the file
  @JsonKey(name: 'voice') Voice? voice,

  /// Optional. True, if the message media is covered by a spoiler animation
  @JsonKey(name: 'has_media_spoiler') bool? hasMediaSpoiler,

  /// Optional. Message is a shared contact, information about the contact
  @JsonKey(name: 'contact') Contact? contact,

  /// Optional. Message is a dice with random value
  @JsonKey(name: 'dice') Dice? dice,

  /// Optional. Message is a game, information about the game
  @JsonKey(name: 'game') Game? game,

  /// Optional. Message is a scheduled giveaway, information about the giveaway
  @JsonKey(name: 'giveaway') Giveaway? giveaway,

  /// Optional. A giveaway with public winners was completed
  @JsonKey(name: 'giveaway_winners') GiveawayWinners? giveawayWinners,

  /// Optional. Message is an invoice for a payment, information about the invoice
  @JsonKey(name: 'invoice') Invoice? invoice,

  /// Optional. Message is a shared location, information about the location
  @JsonKey(name: 'location') Location? location,

  /// Optional. Message is a native poll, information about the poll
  @JsonKey(name: 'poll') Poll? poll,

  /// Optional. Message is a venue, information about the venue
  @JsonKey(name: 'venue') Venue? venue,

  /// Optional. Message contains paid media; information about the paid media
  @JsonKey(name: 'paid_media') PaidMediaInfo? paidMedia,
}) = _ExternalReplyInfo;