WebPage#
- class pyrogram.types.WebPage#
A webpage preview
- Parameters:
id (
str
) – Unique identifier for this webpage.url (
str
) – Full URL for this webpage.display_url (
str
) – Display URL for this webpage.type (
str
, optional) – Type of webpage preview, known types (at the time of writing) are: “article”, “photo”, “gif”, “video” and “document”, “telegram_user”, “telegram_bot”, “telegram_channel”, “telegram_megagroup”.site_name (
str
, optional) – Webpage site name.title (
str
, optional) – Title of this webpage.description (
str
, optional) – Description of this webpage.audio (
Audio
, optional) – Webpage preview is an audio file, information about the file.document (
Document
, optional) – Webpage preview is a general file, information about the file.photo (
Photo
, optional) – Webpage preview is a photo, information about the photo.animation (
Animation
, optional) – Webpage preview is an animation, information about the animation.video (
Video
, optional) – Webpage preview is a video, information about the video.embed_url (
str
, optional) – Embedded content URL.embed_type (
str
, optional) – Embedded content type, like iframeembed_width (
int
, optional) – Embedded content width.embed_height (
int
, optional) – Embedded content height.duration (
int
, optional) – Unknown at the time of writing.author (
str
, optional) – Author of the webpage, eg the Twitter user for a tweet, or the author in an article.