WebPage#
- class pyrogram.raw.types.WebPage#
Webpage preview
Constructor of
WebPage
.- Details:
Layer:
198
ID:
E89C45B2
- Parameters:
id (
int
64-bit
) – Preview IDurl (
str
) – URL of previewed webpagedisplay_url (
str
) – Webpage URL to be displayed to the userhash (
int
32-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.type (
str
, optional) – Type of the web page. One of the following: - video- gif- photo- document- profile- telegram_background- telegram_theme- telegram_story- telegram_channel- telegram_channel_request- telegram_megagroup- telegram_chat- telegram_megagroup_request- telegram_chat_request- telegram_album- telegram_message- telegram_bot- telegram_voicechat- telegram_livestream- telegram_user- telegram_botapp- telegram_channel_boost- telegram_group_boost- telegram_giftcode- telegram_stickersetsite_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 (
int
32-bit
, optional) – Width of the embedded previewembed_height (
int
32-bit
, optional) – Height of the embedded previewduration (
int
32-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