Skip to content

Function: sendPhoto() ​

ts
function sendPhoto(
   client, 
   jpeg, 
   target
): Promise<{
[key: string]: unknown;
  item_id?: string;
  thread_id?: string;
  timestamp?: string;
}>;

Sends a JPEG photo into a thread (or the existing thread with the given users).

Parameters ​

ParameterType
clientPrivateClient
jpegUint8Array
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.