igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Function VoiceAttachmentMessage

    • Send a voice message.

      The voice message is uploaded to rupload.facebook.com/messenger_audio/<entity> through MessengerMediaUpload, the one owner of a media upload's wire (the header set the foreign host needs, the upload slot, the entity headers and the owner's error mapping). The entity name is the app's <upload id>_0_<signed tail>, and the form repeats the upload id as upload_id.

      The broadcast is the app's (direct-message-voice 123): no is_x_transport_forward, no Meta AI field and no action flag — the form's own order, with the waveform after the navigation chain.

      Returns Effect<
          {
              compose: (
                  __namedParameters: DirectBroadcastFormParts,
              ) => {
                  _uuid: string;
                  action: string;
                  attachment_fbid: string;
                  client_context: string;
                  device_id: string;
                  mutation_token: string;
                  nav_chain?: string;
                  offline_threading_id: string;
                  send_attribution: string;
                  upload_id: string;
                  waveform: string;
                  waveform_sampling_frequency_hz: string;
              };
              item: string;
          },
          | IgApiError
          | RequestError
          | ParseError
          | TransportError
          | MessengerMediaUploadMalformedError
          | MessengerMediaUploadHttpError,
          MobileHttpRequest
          | PlainApiHeaders
          | MessengerMediaUploadFeatures,
      >