ExternalReplyInfo
This object contains information about a message that is being replied to, which may come from another chat or forum topic.
fields
| field | type | required | description |
|---|---|---|---|
origin | MessageOrigin | required | Origin of the message replied to by the given message |
chat | Chat | optional | Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel. |
message_id | number | optional | Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel. |
link_preview_options | LinkPreviewOptions | optional | Optional. Options used for link preview generation for the original message, if it is a text message |
animation | Animation | optional | Optional. Message is an animation, information about the animation |
audio | Audio | optional | Optional. Message is an audio file, information about the file |
document | Document | optional | Optional. Message is a general file, information about the file |
live_photo | LivePhoto | optional | Optional. Message is a live photo, information about the live photo |
paid_media | PaidMediaInfo | optional | Optional. Message contains paid media; information about the paid media |
photo | PhotoSize[] | optional | Optional. Message is a photo, available sizes of the photo |
sticker | Sticker | optional | Optional. Message is a sticker, information about the sticker |
story | Story | optional | Optional. Message is a forwarded story |
video | Video | optional | Optional. Message is a video, information about the video |
video_note | VideoNote | optional | Optional. Message is a video note, information about the video message |
voice | Voice | optional | Optional. Message is a voice message, information about the file |
has_media_spoiler | boolean | optional | Optional. True, if the message media is covered by a spoiler animation |
checklist | Checklist | optional | Optional. Message is a checklist |
contact | Contact | optional | Optional. Message is a shared contact, information about the contact |
dice | Dice | optional | Optional. Message is a dice with random value |
game | Game | optional | Optional. Message is a game, information about the game. More about games » |
giveaway | Giveaway | optional | Optional. Message is a scheduled giveaway, information about the giveaway |
giveaway_winners | GiveawayWinners | optional | Optional. A giveaway with public winners was completed |
invoice | Invoice | optional | Optional. Message is an invoice for a payment, information about the invoice. More about payments » |
location | Location | optional | Optional. Message is a shared location, information about the location |
poll | Poll | optional | Optional. Message is a native poll, information about the poll |
venue | Venue | optional | Optional. Message is a venue, information about the venue |
import
import type { ExternalReplyInfo } from "@yaebal/types";used by
types
official Bot API docs: https://core.telegram.org/bots/api/#externalreplyinfo