GetWebPagePreview constructor

const GetWebPagePreview({
  1. required FormattedText text,
  2. LinkPreviewOptions? linkPreviewOptions,
})

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

Implementation

const GetWebPagePreview({
  required this.text,
  this.linkPreviewOptions,
});