get_link_preview


Description:

public async LinkPreview get_link_preview (FormattedText text, LinkPreviewOptions link_preview_options) throws TDLibError

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

Parameters:

text

Message text with formatting

link_preview_options

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