get_web_page_preview

Function get_web_page_preview 

Source
pub async fn get_web_page_preview(
    text: FormattedText,
    link_preview_options: Option<LinkPreviewOptions>,
    client_id: i32,
) -> Result<WebPage, Error>
Expand description

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

ยงArguments

  • 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
  • client_id - The client id to send the request to