ExternalReplyInfo¶
- class telegram.ExternalReplyInfo(origin, chat=None, message_id=None, link_preview_options=None, animation=None, audio=None, document=None, photo=None, sticker=None, story=None, video=None, video_note=None, voice=None, has_media_spoiler=None, contact=None, dice=None, game=None, giveaway=None, giveaway_winners=None, invoice=None, location=None, poll=None, venue=None, paid_media=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
This object contains information about a message that is being replied to, which may come from another chat or forum topic.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
origin
is equal.Available In
Added in version 20.8.
- Parameters:
origin (
telegram.MessageOrigin
) – Origin of the message replied to by the given message.chat (
telegram.Chat
, optional) – Chat the original message belongs to. Available only if the chat is a supergroup or a channel.message_id (
int
, optional) – Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.link_preview_options (
telegram.LinkPreviewOptions
, optional) – Options used for link preview generation for the original message, if it is a text messageanimation (
telegram.Animation
, optional) – Message is an animation, information about the animation.audio (
telegram.Audio
, optional) – Message is an audio file, information about the file.document (
telegram.Document
, optional) – Message is a general file, information about the file.photo (Sequence[
telegram.PhotoSize
], optional) – Message is a photo, available sizes of the photo.sticker (
telegram.Sticker
, optional) – Message is a sticker, information about the sticker.story (
telegram.Story
, optional) – Message is a forwarded story.video (
telegram.Video
, optional) – Message is a video, information about the video.video_note (
telegram.VideoNote
, optional) – Message is a video note, information about the video message.voice (
telegram.Voice
, optional) – Message is a voice message, information about the file.has_media_spoiler (
bool
, optional) –True
, if the message media is covered by a spoiler animation.contact (
telegram.Contact
, optional) – Message is a shared contact, information about the contact.dice (
telegram.Dice
, optional) – Message is a dice with random value.game (
telegram.Game
. optional) – Message is a game, information about the game. More about games >>.giveaway (
telegram.Giveaway
, optional) – Message is a scheduled giveaway, information about the giveaway.giveaway_winners (
telegram.GiveawayWinners
, optional) – A giveaway with public winners was completed.invoice (
telegram.Invoice
, optional) – Message is an invoice for a payment, information about the invoice. More about payments >>.location (
telegram.Location
, optional) – Message is a shared location, information about the location.poll (
telegram.Poll
, optional) – Message is a native poll, information about the poll.venue (
telegram.Venue
, optional) – Message is a venue, information about the venue.paid_media (
telegram.PaidMedia
, optional) –Message contains paid media; information about the paid media.
Added in version 21.4.
- chat[source]¶
Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
- Type:
- message_id[source]¶
Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
- Type:
- link_preview_options[source]¶
Optional. Options used for link preview generation for the original message, if it is a text message.
- photo[source]¶
Optional. Message is a photo, available sizes of the photo.
- Type:
Tuple[
telegram.PhotoSize
]
- video_note[source]¶
Optional. Message is a video note, information about the video message.
- Type:
- has_media_spoiler[source]¶
Optional.
True
, if the message media is covered by a spoiler animation.- Type:
- game[source]¶
Optional. Message is a game, information about the game. More about games >>.
- Type:
- invoice[source]¶
Optional. Message is an invoice for a payment, information about the invoice. More about payments >>.
- Type:
- paid_media[source]¶
Optional. Message contains paid media; information about the paid media.
Added in version 21.4.
- Type: