Skip to content

getLinkPreview

Function · TDLib 1.8.67 · d1085f9c

Returns a link preview by the text of a message. Do not call this function too often. Returns a 404 error if the text has no link preview

getLinkPreview(
  text: FormattedText,
  link_preview_options: LinkPreviewOptions
) → LinkPreview

text

FormattedText

Message text with formatting

LinkPreviewOptions

Options to be used for generation of the link preview; pass null to use default link preview options