Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/baileys/lib/Utils/link-preview.d.ts
1129 views
1
import { WAUrlInfo } from '../Types';
2
export declare type URLGenerationOptions = {
3
thumbnailWidth: number;
4
timeoutMs: number;
5
};
6
/**
7
* Given a piece of text, checks for any URL present, generates link preview for the same and returns it
8
* Return undefined if the fetch failed or no URL was found
9
* @param text first matched URL in text
10
* @returns the URL info required to generate link preview
11
*/
12
export declare const getUrlInfo: (text: string, opts?: URLGenerationOptions) => Promise<WAUrlInfo | undefined>;
13
14