ExternalReplyInfo class abstract

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

Available extensions
Annotations
  • @freezed

Constructors

ExternalReplyInfo({@JsonKey.new(name: 'origin') required MessageOrigin origin, @JsonKey.new(name: 'chat') Chat? chat, @JsonKey.new(name: 'message_id') int? messageId, @JsonKey.new(name: 'link_preview_options') LinkPreviewOptions? linkPreviewOptions, @JsonKey.new(name: 'animation') Animation? animation, @JsonKey.new(name: 'audio') Audio? audio, @JsonKey.new(name: 'document') Document? document, @JsonKey.new(name: 'photo') List<PhotoSize>? photo, @JsonKey.new(name: 'sticker') Sticker? sticker, @JsonKey.new(name: 'story') Story? story, @JsonKey.new(name: 'video') Video? video, @JsonKey.new(name: 'video_note') VideoNote? videoNote, @JsonKey.new(name: 'voice') Voice? voice, @JsonKey.new(name: 'has_media_spoiler') bool? hasMediaSpoiler, @JsonKey.new(name: 'contact') Contact? contact, @JsonKey.new(name: 'dice') Dice? dice, @JsonKey.new(name: 'game') Game? game, @JsonKey.new(name: 'giveaway') Giveaway? giveaway, @JsonKey.new(name: 'giveaway_winners') GiveawayWinners? giveawayWinners, @JsonKey.new(name: 'invoice') Invoice? invoice, @JsonKey.new(name: 'location') Location? location, @JsonKey.new(name: 'poll') Poll? poll, @JsonKey.new(name: 'venue') Venue? venue, @JsonKey.new(name: 'paid_media') PaidMediaInfo? paidMedia, @JsonKey.new(name: 'checklist') Checklist? checklist, @JsonKey.new(name: 'live_photo') LivePhoto? livePhoto})
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
checklist → Checklist?
Optional. Message is a checklist
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
livePhoto → LivePhoto?
Optional. Message is a live photo, information about the live photo
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

map<TResult extends Object?>(TResult $default(_ExternalReplyInfo value)) → TResult

Available on ExternalReplyInfo, provided by the ExternalReplyInfoPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ExternalReplyInfo value)?) → TResult?

Available on ExternalReplyInfo, provided by the ExternalReplyInfoPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ExternalReplyInfo value)?, {required TResult orElse()}) → TResult

Available on ExternalReplyInfo, provided by the ExternalReplyInfoPatterns extension

A variant of map that fallback to returning orElse.
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