ExternalReplyInfo constructor
const
ExternalReplyInfo({
- @JsonKey(name: 'origin') required MessageOrigin origin,
- @JsonKey(name: 'chat') Chat? chat,
- @JsonKey(name: 'message_id') int? messageId,
- @JsonKey(name: 'link_preview_options') LinkPreviewOptions? linkPreviewOptions,
- @JsonKey(name: 'animation') Animation? animation,
- @JsonKey(name: 'audio') Audio? audio,
- @JsonKey(name: 'document') Document? document,
- @JsonKey(name: 'photo') List<
PhotoSize> ? photo, - @JsonKey(name: 'sticker') Sticker? sticker,
- @JsonKey(name: 'story') Story? story,
- @JsonKey(name: 'video') Video? video,
- @JsonKey(name: 'video_note') VideoNote? videoNote,
- @JsonKey(name: 'voice') Voice? voice,
- @JsonKey(name: 'has_media_spoiler') bool? hasMediaSpoiler,
- @JsonKey(name: 'contact') Contact? contact,
- @JsonKey(name: 'dice') Dice? dice,
- @JsonKey(name: 'game') Game? game,
- @JsonKey(name: 'giveaway') Giveaway? giveaway,
- @JsonKey(name: 'giveaway_winners') GiveawayWinners? giveawayWinners,
- @JsonKey(name: 'invoice') Invoice? invoice,
- @JsonKey(name: 'location') Location? location,
- @JsonKey(name: 'poll') Poll? poll,
- @JsonKey(name: 'venue') Venue? venue,
- @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;