WebPage#
- class pyrogram.raw.types.WebPage#
- Webpage preview. - Constructor of - WebPage.- Details:
- Layer: - 158
- 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.
- type ( - str, optional) – Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else, see here » for a full list.
- 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.
 
 - Functions:
- This object can be returned by 1 function. - Get instant view page.