Skip to content

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 ​

ParameterType
clientPrivateClient
textstring
targetSendTarget

Returns ​

Promise<{ [key: string]: unknown; item_id?: string; thread_id?: string; timestamp?: string; }>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.