View Source ExTDLib.Object.WebPage (ExTDLib v0.0.4)
Describes a link 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 | formattedText | 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. |
| has_large_media | bool | True, if size of media in the preview can be changed. |
| show_large_media | bool | True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos. |
| skip_confirmation | bool | True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear. |
| show_above_text | bool | True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text. |
| 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; 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. |
| story_sender_chat_id | string | The identifier of the sender of the previewed story; 0 if none. |
| story_id | number | The identifier of the previewed story; 0 if none. |
| instant_view_version | number | Version of web page instant view (currently, can be 1 or 2); 0 if none. |
More details on telegram's documentation.