WebPage
Describes a web page preview.
This is an alias for the WebPageUnion
type.
chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
_ | "webPage" | |
url | string | Original URL of the link |
displayUrl | string | URL to display |
type | string | Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else |
siteName | string | Short name of the site (e.g., Google Docs, App Store) |
title | string | Title of the content |
description | Description of the content | |
photo | Image representing the content; may be null | |
embedUrl | string | URL to show in the embedded preview |
embedType | string | MIME type of the embedded preview, (e.g., text/html or video/mp4) |
embedWidth | number | Width of the embedded preview |
embedHeight | number | Height of the embedded preview |
duration | number | Duration of the content, in seconds |
author | string | Author of the content |
animation | Preview of the content as an animation, if available; may be null | |
audio | Preview of the content as an audio file, if available; may be null | |
document | Preview of the content as a document, if available; may be null | |
sticker | Preview of the content as a sticker for small WEBP files, if available; may be null | |
video | Preview of the content as a video, if available; may be null | |
videoNote | Preview of the content as a video note, if available; may be null | |
voiceNote | Preview of the content as a voice note, if available; may be null | |
instantViewVersion | number | Version of instant view, available for the web page (currently, can be 1 or 2), 0 if none |