ExternalReplyInfo class abstract

Contains information about a message that is being replied to, which may come from another chat or forum topic.

Annotations
  • @freezed

Constructors

ExternalReplyInfo.new({@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
const
factory
ExternalReplyInfo.fromJson(Map<String, dynamic> json)
Creates instance of ExternalReplyInfo from JSON data.
factory

Properties

animation Animation?
Optional. Message is an animation, information about the animation
no setterinherited
audio Audio?
Optional. Message is an audio file, information about the file
no setterinherited
chat Chat?
Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
no setterinherited
contact Contact?
Optional. Message is a shared contact, information about the contact
no setterinherited
copyWith → $ExternalReplyInfoCopyWith<ExternalReplyInfo>
Create a copy of ExternalReplyInfo with the given fields replaced by the non-null parameter values.
no setterinherited
dice Dice?
Optional. Message is a dice with random value
no setterinherited
document Document?
Optional. Message is a general file, information about the file
no setterinherited
game Game?
Optional. Message is a game, information about the game
no setterinherited
giveaway Giveaway?
Optional. Message is a scheduled giveaway, information about the giveaway
no setterinherited
giveawayWinners GiveawayWinners?
Optional. A giveaway with public winners was completed
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasMediaSpoiler bool?
Optional. True, if the message media is covered by a spoiler animation
no setterinherited
invoice Invoice?
Optional. Message is an invoice for a payment, information about the invoice
no setterinherited
linkPreviewOptions LinkPreviewOptions?
Optional. Options used for link preview generation for the original message, if it is a text message
no setterinherited
location Location?
Optional. Message is a shared location, information about the location
no setterinherited
messageId int?
Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
no setterinherited
origin MessageOrigin
Origin of the message replied to by the given message
no setterinherited
paidMedia PaidMediaInfo?
Optional. Message contains paid media; information about the paid media
no setterinherited
photo List<PhotoSize>?
Optional. Message is a photo, available sizes of the photo
no setterinherited
poll Poll?
Optional. Message is a native poll, information about the poll
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sticker Sticker?
Optional. Message is a sticker, information about the sticker
no setterinherited
story Story?
Optional. Message is a forwarded story
no setterinherited
venue Venue?
Optional. Message is a venue, information about the venue
no setterinherited
video Video?
Optional. Message is a video, information about the video
no setterinherited
videoNote VideoNote?
Optional. Message is a video note, information about the video message
no setterinherited
voice Voice?
Optional. Message is a voice message, information about the file
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ExternalReplyInfo to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited