ExternalReplyInfo

class aiogram.types.external_reply_info.ExternalReplyInfo(*, origin: MessageOriginUser | MessageOriginHiddenUser | MessageOriginChat | MessageOriginChannel, chat: Chat | None = None, message_id: int | None = None, link_preview_options: LinkPreviewOptions | None = None, animation: Animation | None = None, audio: Audio | None = None, document: Document | None = None, paid_media: PaidMediaInfo | None = None, photo: List[PhotoSize] | None = None, sticker: Sticker | None = None, story: Story | None = None, video: Video | None = None, video_note: VideoNote | None = None, voice: Voice | None = None, has_media_spoiler: bool | None = None, contact: Contact | None = None, dice: Dice | None = None, game: Game | None = None, giveaway: Giveaway | None = None, giveaway_winners: GiveawayWinners | None = None, invoice: Invoice | None = None, location: Location | None = None, poll: Poll | None = None, venue: Venue | None = None, **extra_data: Any)[source]

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

Source: https://core.telegram.org/bots/api#externalreplyinfo

origin: MessageOriginUser | MessageOriginHiddenUser | MessageOriginChat | MessageOriginChannel

Origin of the message replied to by the given message

chat: Chat | None

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

message_id: int | None

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

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

animation: Animation | None

Optional. Message is an animation, information about the animation

audio: Audio | None

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

document: Document | None

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

paid_media: PaidMediaInfo | None

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

photo: List[PhotoSize] | None

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

sticker: Sticker | None

Optional. Message is a sticker, information about the sticker

story: Story | None

Optional. Message is a forwarded story

video: Video | None

Optional. Message is a video, information about the video

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

video_note: VideoNote | None

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

voice: Voice | None

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

has_media_spoiler: bool | None

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

contact: Contact | None

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

dice: Dice | None

Optional. Message is a dice with random value

game: Game | None

Optional. Message is a game, information about the game. More about games »

giveaway: Giveaway | None

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

giveaway_winners: GiveawayWinners | None

Optional. A giveaway with public winners was completed

invoice: Invoice | None

Optional. Message is an invoice for a payment, information about the invoice. More about payments »

location: Location | None

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

poll: Poll | None

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

venue: Venue | None

Optional. Message is a venue, information about the venue