WebPage¶
- class pyrogram.raw.types.WebPage[source]¶
Webpage preview
Constructor of
WebPage.- Details:
Layer:
229ID:
E89C45B2
- Parameters:
id (
int64-bit) – Preview IDurl (
str) – URL of previewed webpagedisplay_url (
str) – Webpage URL to be displayed to the userhash (
int32-bit) – Hash used for caching, for more info click herehas_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 theattributesfield). 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 contentdescription (
str, optional) – Content descriptionphoto (
Photo, optional) – Image representing the contentembed_url (
str, optional) – URL to show in the embedded previewembed_type (
str, optional) – MIME type of the embedded preview, (e.g., text/html or video/mp4)embed_width (
int32-bit, optional) – Width of the embedded previewembed_height (
int32-bit, optional) – Height of the embedded previewduration (
int32-bit, optional) – Duration of the content, in secondsauthor (
str, optional) – Author of the contentdocument (
Document, optional) – Preview of the content as a media filecached_page (
Page, optional) – Page contents in instant view formatattributes (List of
WebPageAttribute, optional) – Webpage attributes