TDLib v0.0.2 TDLib.Object.WebPage View Source
Describes a web page preview.
Name | Type | Description |
---|---|---|
url | string | Original URL of the link. |
display_url | string | URL to display. |
type | string | Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else. |
site_name | string | Short name of the site (e.g., Google Docs, App Store). |
title | string | Title of the content. |
description | string | Description of the content. |
photo | photo | Image representing the content; may be null. |
embed_url | string | URL to show in the embedded preview. |
embed_type | string | MIME type of the embedded preview, (e.g., text/html or video/mp4). |
embed_width | number | Width of the embedded preview. |
embed_height | number | Height of the embedded preview. |
duration | number | Duration of the content, in seconds. |
author | string | Author of the content. |
animation | animation | Preview of the content as an animation, if available; may be null. |
audio | audio | Preview of the content as an audio file, if available; may be null. |
document | document | Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null. |
sticker | sticker | Preview of the content as a sticker for small WEBP files, if available; may be null. |
video | video | Preview of the content as a video, if available; may be null. |
video_note | videoNote | Preview of the content as a video note, if available; may be null. |
voice_note | voiceNote | Preview of the content as a voice note, if available; may be null. |
has_instant_view | bool | True, if the web page has an instant view. |
More details on telegram’s documentation.