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, *, 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.

New in version 20.8.

Parameters:
origin[source]

Origin of the message replied to by the given message.

Type:

telegram.MessageOrigin

chat[source]

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

Type:

telegram.Chat

message_id[source]

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

Type:

int

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

Type:

telegram.LinkPreviewOptions

animation[source]

Optional. Message is an animation, information about the animation.

Type:

telegram.Animation

audio[source]

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

Type:

telegram.Audio

document[source]

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

Type:

telegram.Document

photo[source]

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

Type:

Tuple[telegram.PhotoSize]

sticker[source]

Optional. Message is a sticker, information about the sticker.

Type:

telegram.Sticker

story[source]

Optional. Message is a forwarded story.

Type:

telegram.Story

video[source]

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

Type:

telegram.Video

video_note[source]

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

Type:

telegram.VideoNote

voice[source]

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

Type:

telegram.Voice

has_media_spoiler[source]

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

Type:

bool

contact[source]

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

Type:

telegram.Contact

dice[source]

Optional. Message is a dice with random value.

Type:

telegram.Dice

game[source]

Optional. Message is a game, information about the game.

Type:

telegram.Game

giveaway[source]

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

Type:

telegram.Giveaway

giveaway_winners[source]

Optional. A giveaway with public winners was completed.

Type:

telegram.GiveawayWinners

invoice[source]

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

Type:

telegram.Invoice

location[source]

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

Type:

telegram.Location

poll[source]

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

Type:

telegram.Poll

venue[source]

Optional. Message is a venue, information about the venue.

Type:

telegram.Venue

classmethod de_json(data, bot)[source]

See telegram.TelegramObject.de_json.