StaticGramBot API

LinkPreviewOptions

Describes the options used for link preview generation.

Поля

is_disabledBooleanoptional
True, if the link preview is disabled
urlStringoptional
URL to use for the link preview. If empty, then the first URL found in the message text will be used.
prefer_small_mediaBooleanoptional
True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
prefer_large_mediaBooleanoptional
True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
show_above_textBooleanoptional
True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text

Где используется

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top