View Source ExTDLib.Method.GetWebPagePreview (ExTDLib v0.0.4)

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. Returns object_ptr<WebPage>.

NameTypeDescription
textformattedTextMessage text with formatting.
link_preview_optionslinkPreviewOptionsOptions to be used for generation of the link preview; pass null to use default link preview options.

More details on telegram's documentation.