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

    Interface DirectThreadMessageItemActions

    The actions of DirectThreadMessageItem: the methods you call on an item of the list.

    interface DirectThreadMessageItemActions {
        draw: (
            ...args: [],
        ) => Effect<
            AssembledHandle<
                "DirectDoodleEditor",
                "screen",
                {
                    target_item_id: string;
                    target_offline_threading_id: string;
                    thread_id: string;
                },
                DirectDoodleEditorActions,
                Record<never, never>,
                ScreenHandle,
                "required",
                true,
                never,
                AndroidScreens,
            >,
            ScreenEnterConcurrentError | ScreenDataError | ScreenEdgeInputError,
            never,
        >;
        edit: (
            ...args: [text: string],
        ) => Effect<
            ActionValue<unknown>,

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | DirectEditMessageRejectedError
                | GraphqlRootFieldMissingError
                | ScreenEnterConcurrentError,
            never,
        >;
        forward: (
            ...args: [],
        ) => Effect<
            AssembledHandle<
                "DirectForwardingSheet",
                "screen",
                {
                    thread_id: string;
                    threads: readonly {
                        is_group: boolean;
                        thread_id: string;
                        thread_title: string;
                        users: readonly {
                            fbid_v2?: string;
                            full_name: string;
                            pk: string;
                            username: string;
                        }[];
                    }[];
                },
                DirectForwardingSheetActions,
                DirectForwardingSheetItems,
                ScreenHandle,
                "required",
                true,
                "thread_id",
                AndroidScreens,
            >,
            ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError,
            never,
        >;
        react: (
            ...args: [reaction: { emoji: "❤" | "😂" | "😮" | "😢" | "😡" | "👍" }],
        ) => Effect<
            {
                action: string;
                client_context: string;
                message_metadata: DirectBroadcastResponseMessageMetadata[];
                payload: DirectBroadcastResponsePayload;
                status: string;
                status_code: string;
            } & { raw: ActionRaw },

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

                | IgApiError
                | RequestError
                | ParseError
                | TransportError
                | ScreenEnterConcurrentError,
            never,
        >;
        unsend: (
            ...args: [],
        ) => Effect<
            StatusResponse & { raw: ActionRaw },

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

    Properties

    draw: (
        ...args: [],
    ) => Effect<
        AssembledHandle<
            "DirectDoodleEditor",
            "screen",
            {
                target_item_id: string;
                target_offline_threading_id: string;
                thread_id: string;
            },
            DirectDoodleEditorActions,
            Record<never, never>,
            ScreenHandle,
            "required",
            true,
            never,
            AndroidScreens,
        >,
        ScreenEnterConcurrentError | ScreenDataError | ScreenEdgeInputError,
        never,
    >

    Draws on this message: opens the draw editor (DirectDoodleEditor) over it, with the message's item id and the threading id it was sent with. A message without that id dies with DirectThreadMessageNotDrawableError before anything is built. Answers the editor's handle.

    edit: (
        ...args: [text: string],
    ) => Effect<
        ActionValue<unknown>,

            | IgApiError
            | RequestError
            | ParseError
            | TransportError
            | DirectEditMessageRejectedError
            | GraphqlRootFieldMissingError
            | ScreenEnterConcurrentError,
        never,
    >

    Edits this message's text from its long-press menu, for the message you name — the menu's own rules are the app's, and the server decides. Answers the edited message; a refusal the server answers is the typed DirectEditMessageRejectedError.

    forward: (
        ...args: [],
    ) => Effect<
        AssembledHandle<
            "DirectForwardingSheet",
            "screen",
            {
                thread_id: string;
                threads: readonly {
                    is_group: boolean;
                    thread_id: string;
                    thread_title: string;
                    users: readonly {
                        fbid_v2?: string;
                        full_name: string;
                        pk: string;
                        username: string;
                    }[];
                }[];
            },
            DirectForwardingSheetActions,
            DirectForwardingSheetItems,
            ScreenHandle,
            "required",
            true,
            "thread_id",
            AndroidScreens,
        >,
        ScreenEnterConcurrentError
        | ScreenDataError
        | ScreenEdgeInputError,
        never,
    >

    Taps Forward in the message's long-press menu: opens the forwarding sheet, the conversations to forward it into. Answers the sheet's handle; picking a row there sends the forward.

    react: (
        ...args: [reaction: { emoji: "❤" | "😂" | "😮" | "😢" | "😡" | "👍" }],
    ) => Effect<
        {
            action: string;
            client_context: string;
            message_metadata: DirectBroadcastResponseMessageMetadata[];
            payload: DirectBroadcastResponsePayload;
            status: string;
            status_code: string;
        } & { raw: ActionRaw },

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

    Reacts to this message with the emoji you pick in the tray. Answers the reaction sent.

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

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

    Replies to this message from its long-press menu: sends your text quoting it. Answers the message sent.

    unsend: (
        ...args: [],
    ) => Effect<
        StatusResponse & { raw: ActionRaw },

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

    Unsends this message from its long-press menu, for the message you name — the server decides. Answers the deletion.