GetLinkPreview constructor

const GetLinkPreview({
  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 GetLinkPreview({required this.text, this.linkPreviewOptions});