LinkPreview¶
Describes a link preview
LinkPreview(
url: string,
display_url: string,
site_name: string,
title: string,
description: FormattedText,
author: string,
type: LinkPreviewType,
has_large_media: Bool,
show_large_media: Bool,
show_media_above_description: Bool,
skip_confirmation: Bool,
show_above_text: Bool,
instant_view_version: int32
) → LinkPreview
url¶
string
Original URL of the link
display_url¶
string
URL to display
site_name¶
string
Short name of the website (e.g., Google Docs, App Store)
title¶
string
Title of the content
description¶
Description of the content
author¶
string
Author of the content
type¶
Type of the link preview
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
show_media_above_description¶
Bool
True, if media must be shown above link preview description; otherwise, the media must be shown below the description
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
instant_view_version¶
int32
Version of instant view (currently, can be 1 or 2) for the web page; 0 if none