Skip to content

LinkPreviewOptions

Type · TDLib 1.8.67 · d1085f9c

Options to be used for generation of a link preview

LinkPreviewOptions(
  is_disabled: Bool,
  url: string,
  force_small_media: Bool,
  force_large_media: Bool,
  show_above_text: Bool
) → LinkPreviewOptions

is_disabled

Bool

True, if link preview must be disabled

url

string

URL to use for link preview. If empty, then the first URL found in the message text will be used

force_small_media

Bool

True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified

force_large_media

Bool

True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified

show_above_text

Bool

True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message text; ignored in secret chats