WebPage

class pyrogram.raw.types.WebPage[source]

Webpage preview

Constructor of WebPage.

Details:
  • Layer: 229

  • ID: E89C45B2

Parameters:
  • id (int 64-bit) – Preview ID

  • url (str) – URL of previewed webpage

  • display_url (str) – Webpage URL to be displayed to the user

  • hash (int 32-bit) – Hash used for caching, for more info click here

  • has_large_media (bool, optional) – Whether the size of the media in the preview can be changed.

  • video_cover_photo (bool, optional) – Represents a custom video cover.

  • type (str, optional) – Type of the web page, which influences how the preview is rendered (i.e. which extra action button is offered, where the media is taken from, and which WebPageAttribute is present in the attributes field). See above for the list of possible values.

  • site_name (str, optional) – Short name of the site (e.g., Google Docs, App Store)

  • title (str, optional) – Title of the content

  • description (str, optional) – Content description

  • photo (Photo, optional) – Image representing the content

  • embed_url (str, optional) – URL to show in the embedded preview

  • embed_type (str, optional) – MIME type of the embedded preview, (e.g., text/html or video/mp4)

  • embed_width (int 32-bit, optional) – Width of the embedded preview

  • embed_height (int 32-bit, optional) – Height of the embedded preview

  • duration (int 32-bit, optional) – Duration of the content, in seconds

  • author (str, optional) – Author of the content

  • document (Document, optional) – Preview of the content as a media file

  • cached_page (Page, optional) – Page contents in instant view format

  • attributes (List of WebPageAttribute, optional) – Webpage attributes