Function: sendLink()
ts
function sendLink(
client,
text,
target
): Promise<{
[key: string]: unknown;
item_id?: string;
thread_id?: string;
timestamp?: string;
}>;Sends a message whose text contains a link, so it renders as a link preview.
Parameters
| Parameter | Type |
|---|---|
client | PrivateClient |
text | string |
target | SendTarget |
Returns
Promise<{ [key: string]: unknown; item_id?: string; thread_id?: string; timestamp?: string; }>