View Source ExTDLib.Object.WebPage (ExTDLib v0.0.4)

Describes a link 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.
descriptionformattedTextDescription 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.
has_large_mediaboolTrue, if size of media in the preview can be changed.
show_large_mediaboolTrue, 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_confirmationboolTrue, 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_textboolTrue, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text.
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; 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.
story_sender_chat_idstringThe identifier of the sender of the previewed story; 0 if none.
story_idnumberThe identifier of the previewed story; 0 if none.
instant_view_versionnumberVersion of web page instant view (currently, can be 1 or 2); 0 if none.

More details on telegram's documentation.