ExternalReplyInfo

class pyrogram.types.ExternalReplyInfo

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

Parameters:
  • origin (:obj:`~pyrogram.types.MessageOrigin`, *optional*) – Origin of the message replied to by the given message.

  • chat (:obj:`~pyrogram.types.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.

  • media (:obj:`~pyrogram.enums.MessageMediaType`, *optional*) – The message is a media message. This field will contain the enumeration type of the media message. You can use media = getattr(message, message.media.value) to access the media message.

  • animation (:obj:`~pyrogram.types.Animation`, *optional*) – Message is an animation, information about the animation.

  • audio (:obj:`~pyrogram.types.Audio`, *optional*) – Message is an audio file, information about the file.

  • document (:obj:`~pyrogram.types.Document`, *optional*) – Message is a general file, information about the file.

  • paid_media (:obj:`~pyrogram.types.PaidMediaInfo`, *optional*) – Message contains paid media; information about the paid media.

  • photo (:obj:`~pyrogram.types.Photo`, *optional*) – Message is a photo, information about the photo.

  • sticker (:obj:`~pyrogram.types.Sticker`, *optional*) – Message is a sticker, information about the sticker.

  • story (:obj:`~pyrogram.types.Story`, *optional*) – Message is a forwarded story.

  • video (:obj:`~pyrogram.types.Video`, *optional*) – Message is a video, information about the video.

  • video_note (:obj:`~pyrogram.types.VideoNote`, *optional*) – Message is a video note, information about the video message.

  • voice (:obj:`~pyrogram.types.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 (:obj:`~pyrogram.types.Contact`, *optional*) – Message is a shared contact, information about the contact.

  • dice (:obj:`~pyrogram.types.Dice`, *optional*) – A dice containing a value that is randomly generated by Telegram.

  • game (:obj:`~pyrogram.types.Game`, *optional*) – Message is a game, information about the game.

  • giveaway (:obj:`~pyrogram.types.Giveaway`, *optional*) – Message is a scheduled giveaway, information about the giveaway.

  • giveaway_result (:obj:`~pyrogram.types.GiveawayResult`, *optional*) – Message is a giveaway result, information about the giveaway result.

  • invoice (:obj:`~pyrogram.types.Invoice`, *optional*) – Message is a invoice, information about the invoice. More about payments »

  • location (:obj:`~pyrogram.types.Location`, *optional*) – Message is a shared location, information about the location.

  • poll (:obj:`~pyrogram.types.Poll`, *optional*) – Message is a native poll, information about the poll.

  • venue (:obj:`~pyrogram.types.Venue`, *optional*) – Message is a venue, information about the venue.