ExternalReplyInfo

@Serializable
data class ExternalReplyInfo(val origin: MessageOrigin, val chat: Chat? = null, val messageId: Long? = null, val linkPreviewOptions: LinkPreviewOptions? = null, val animation: Animation? = null, val audio: Audio? = null, val document: Document? = null, val paidMedia: PaidMediaInfo? = null, val photo: List<PhotoSize>? = null, val sticker: Sticker? = null, val story: Story? = null, val video: Video? = null, val videoNote: VideoNote? = null, val voice: Voice? = null, val hasMediaSpoiler: Boolean? = null, val contact: Contact? = null, val dice: Dice? = null, val game: Game? = null, val giveaway: Giveaway? = null, val giveawayWinners: GiveawayWinners? = null, val invoice: Invoice? = null, val location: Location? = null, val poll: Poll? = null, val venue: Venue? = null)

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

Api reference

Constructors

Link copied to clipboard
constructor(origin: MessageOrigin, chat: Chat? = null, messageId: Long? = null, linkPreviewOptions: LinkPreviewOptions? = null, animation: Animation? = null, audio: Audio? = null, document: Document? = null, paidMedia: PaidMediaInfo? = null, photo: List<PhotoSize>? = null, sticker: Sticker? = null, story: Story? = null, video: Video? = null, videoNote: VideoNote? = null, voice: Voice? = null, hasMediaSpoiler: Boolean? = null, contact: Contact? = null, dice: Dice? = null, game: Game? = null, giveaway: Giveaway? = null, giveawayWinners: GiveawayWinners? = null, invoice: Invoice? = null, location: Location? = null, poll: Poll? = null, venue: Venue? = null)

Properties

Link copied to clipboard
val animation: Animation? = null

Optional. Message is an animation, information about the animation

Link copied to clipboard
val audio: Audio? = null

Optional. Message is an audio file, information about the file

Link copied to clipboard
val chat: Chat? = null

Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.

Link copied to clipboard
val contact: Contact? = null

Optional. Message is a shared contact, information about the contact

Link copied to clipboard
val dice: Dice? = null

Optional. Message is a dice with random value

Link copied to clipboard
val document: Document? = null

Optional. Message is a general file, information about the file

Link copied to clipboard
val game: Game? = null

Optional. Message is a game, information about the game. More about games: https://core.telegram.org/bots/api#games

Link copied to clipboard
val giveaway: Giveaway? = null

Optional. Message is a scheduled giveaway, information about the giveaway

Link copied to clipboard

Optional. A giveaway with public winners was completed

Link copied to clipboard

Optional. True, if the message media is covered by a spoiler animation

Link copied to clipboard
val invoice: Invoice? = null

Optional. Message is an invoice for a payment, information about the invoice. More about payments: https://core.telegram.org/bots/api#payments

Link copied to clipboard

Optional. Options used for link preview generation for the original message, if it is a text message

Link copied to clipboard
val location: Location? = null

Optional. Message is a shared location, information about the location

Link copied to clipboard
val messageId: Long? = null

Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.

Link copied to clipboard

Origin of the message replied to by the given message

Link copied to clipboard

Optional. Message contains paid media; information about the paid media

Link copied to clipboard
val photo: List<PhotoSize>? = null

Optional. Message is a photo, available sizes of the photo

Link copied to clipboard
val poll: Poll? = null

Optional. Message is a native poll, information about the poll

Link copied to clipboard
val sticker: Sticker? = null

Optional. Message is a sticker, information about the sticker

Link copied to clipboard
val story: Story? = null

Optional. Message is a forwarded story

Link copied to clipboard
val venue: Venue? = null

Optional. Message is a venue, information about the venue

Link copied to clipboard
val video: Video? = null

Optional. Message is a video, information about the video

Link copied to clipboard
val videoNote: VideoNote? = null

Optional. Message is a video note, information about the video message

Link copied to clipboard
val voice: Voice? = null

Optional. Message is a voice message, information about the file