Skip to content

Function: sendVoice() ​

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

Sends a voice message (an .m4a AAC clip) into a thread or the thread with the users.

Parameters ​

ParameterType
clientPrivateClient
m4aUint8Array
targetSendTarget
options?VoiceOptions

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.