TDLib v0.0.2 TDLib.Object.WebPage View Source

Describes a web page preview.

NameTypeDescription
urlstringOriginal URL of the link.
display_urlstringURL to display.
typestringType of the web page. Can be: article, photo, audio, video, document, profile, app, or something else.
site_namestringShort name of the site (e.g., Google Docs, App Store).
titlestringTitle of the content.
descriptionstringDescription of the content.
photophotoImage representing the content; may be null.
embed_urlstringURL to show in the embedded preview.
embed_typestringMIME type of the embedded preview, (e.g., text/html or video/mp4).
embed_widthnumberWidth of the embedded preview.
embed_heightnumberHeight of the embedded preview.
durationnumberDuration of the content, in seconds.
authorstringAuthor of the content.
animationanimationPreview of the content as an animation, if available; may be null.
audioaudioPreview of the content as an audio file, if available; may be null.
documentdocumentPreview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null.
stickerstickerPreview of the content as a sticker for small WEBP files, if available; may be null.
videovideoPreview of the content as a video, if available; may be null.
video_notevideoNotePreview of the content as a video note, if available; may be null.
voice_notevoiceNotePreview of the content as a voice note, if available; may be null.
has_instant_viewboolTrue, if the web page has an instant view.

More details on telegram’s documentation.