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

    Function PhotoAttachmentMessage

    • Send a new photo from a gallery.

      The picture is uploaded to rupload.facebook.com/messenger_image/<entity> through MessengerMediaUpload, the one owner of a media upload's wire (the header set the foreign host needs, the entity headers and the owner's error mapping). The photo posts without a slot, as a messenger_image upload does, and its entity name is the app's <upload id>_0_<signed tail>.

      The broadcast is the one the app sends from the gallery picker (direct-message-photo 099): the form's own field order, attachment_fbid the uploaded media's id, and the three fields the picker's send carries (is_duplicate_attachment, meta_gallery_media_info, allow_full_aspect_ratio).

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