Interface GetLinkPreview

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. Request type for Tdjson#getLinkPreview.

interface GetLinkPreview {
    @type: "getLinkPreview";
    link_preview_options: LinkPreviewOptions;
    text: FormattedText;
}

Properties

@type: "getLinkPreview"
link_preview_options: LinkPreviewOptions

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

Message text with formatting.