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

    Interface DirectMediaPickerPhotosActions

    The actions of DirectMediaPickerPhotosScreen: the methods you call on its handle while the picker is open.

    interface DirectMediaPickerPhotosActions {
        sendPhoto: (
            ...args: [input: DirectMediaPickerPhotoInput],
        ) => Effect<
            {
                action: string;
                client_context: string;
                message_metadata: DirectBroadcastResponseMessageMetadata[];
                payload: DirectBroadcastResponsePayload;
                status: string;
                status_code: string;
            } & { raw: ActionRaw },

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | MessengerMediaUploadMalformedError
                | MessengerMediaUploadHttpError
                | ScreenEnterConcurrentError,
            never,
        >;
        sendVideo: (
            ...args: [input: DirectMediaPickerPhotoInput],
        ) => Effect<
            {
                action: string;
                client_context: string;
                message_metadata: DirectBroadcastResponseMessageMetadata[];
                payload: DirectBroadcastResponsePayload;
                status: string;
                status_code: string;
            } & { raw: ActionRaw },

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | MessengerMediaUploadMalformedError
                | MessengerMediaUploadHttpError
                | PostingVideoEncodeError
                | ScreenEnterConcurrentError,
            never,
        >;
    }
    Index

    Properties

    Properties

    sendPhoto: (
        ...args: [input: DirectMediaPickerPhotoInput],
    ) => Effect<
        {
            action: string;
            client_context: string;
            message_metadata: DirectBroadcastResponseMessageMetadata[];
            payload: DirectBroadcastResponsePayload;
            status: string;
            status_code: string;
        } & { raw: ActionRaw },

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | MessengerMediaUploadMalformedError
            | MessengerMediaUploadHttpError
            | ScreenEnterConcurrentError,
        never,
    >

    Picks a photo in the grid and sends it to the conversation (file, its bytes). Answers the sent message.

    sendVideo: (
        ...args: [input: DirectMediaPickerPhotoInput],
    ) => Effect<
        {
            action: string;
            client_context: string;
            message_metadata: DirectBroadcastResponseMessageMetadata[];
            payload: DirectBroadcastResponsePayload;
            status: string;
            status_code: string;
        } & { raw: ActionRaw },

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | MessengerMediaUploadMalformedError
            | MessengerMediaUploadHttpError
            | PostingVideoEncodeError
            | ScreenEnterConcurrentError,
        never,
    >

    Picks a video in the grid and sends it to the conversation (file, its bytes): the upload settings, the encode the server's directive asks for, the upload and the app's video_attachment broadcast. Answers the sent message.