getLinkPreview
Get the link preview for a message that is about to be sent. User-only.
Parameters
text: string
The message’s text.
The parse mode to use. if omitted, the default parse mode will be used.
The message’s entities.
Result
Syntax
// Required parameters only.
await client.getLinkPreview(text);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.getLinkPreview(text, { parseMode, entities });