BotInlineMessageMediaWebPage

class pyrogram.raw.types.BotInlineMessageMediaWebPage

Specifies options that must be used to generate the link preview for the message, or even a standalone link preview without an attached message.

Constructor of BotInlineMessage.

Details:
  • Layer: 187

  • ID: 809AD9A6

Parameters:
  • message (str) – The message, can be empty.

  • url (str) – The URL to use for the link preview.

  • invert_media (bool, optional) – If set, any eventual webpage preview will be shown on top of the message instead of at the bottom.

  • force_large_media (bool, optional) – If set, specifies that a large media preview should be used.

  • force_small_media (bool, optional) – If set, specifies that a small media preview should be used.

  • manual (bool, optional) – If set, indicates that the URL used for the webpage preview was specified manually using inputMediaWebPage, and may not be related to any of the URLs specified in the message.

  • safe (bool, optional) – If set, the link can be opened directly without user confirmation.

  • entities (List of MessageEntity, optional) – Message entities for styled text

  • reply_markup (ReplyMarkup, optional) – Reply markup for sending bot buttons