Airgram

Guides
/
/
Output types

WebPage

Describes a web page preview.

This is an alias for the WebPageUnion type.


NameTypeDescription
_"webPage"
urlstring Original URL of the link
displayUrlstring URL to display
typestring Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else
siteNamestring Short name of the site (e.g., Google Docs, App Store)
titlestring Title of the content
description Description of the content
photo Image representing the content; may be null
embedUrlstring URL to show in the embedded preview
embedTypestring MIME type of the embedded preview, (e.g., text/html or video/mp4)
embedWidthnumber Width of the embedded preview
embedHeightnumber Height of the embedded preview
durationnumber Duration of the content, in seconds
authorstring 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
instantViewVersionnumber Version of instant view, available for the web page (currently, can be 1 or 2), 0 if none