MessageMediaWebPage#

class pyrogram.raw.types.MessageMediaWebPage#

Preview of webpage

Constructor of MessageMedia.

Details:
  • Layer: 220

  • ID: DDF10C3B

Parameters:
  • webpage (WebPage) – Webpage preview

  • 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 webpage can be opened directly without user confirmation; otherwise, user confirmation is required, showing the exact URL that will be opened.

Functions:

This object can be returned by 2 functions.

messages.UploadMedia

Upload a file and associate it to a chat (without actually sending it to the chat) May also be used in a business connection, not by wrapping the query in invokeWithBusinessConnection , but rather by specifying the business connection ID in the business_connection_id parameter.

messages.UploadImportedMedia

Upload a media file associated with an imported chat, click here for more info .