Function: sendText()
ts
function sendText(
client,
text,
target
): Promise<{
[key: string]: unknown;
item_id?: string;
thread_id?: string;
timestamp?: string;
}>;Sends a text message to a thread or to users, returning the send result.
Parameters
| Parameter | Type |
|---|---|
client | PrivateClient |
text | string |
target | SendTarget |
Returns
Promise<{ [key: string]: unknown; item_id?: string; thread_id?: string; timestamp?: string; }>