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

    Interface MediaCommentsActions

    The actions of MediaCommentsScreen: the methods you call on its handle while the screen is open.

    interface MediaCommentsActions {
        comment: (
            ...args: [text: string, options?: CommentOptions],
        ) => Effect<
            MediaCommentResponse & { raw: ActionRaw },

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

    Properties

    Properties

    comment: (
        ...args: [text: string, options?: CommentOptions],
    ) => Effect<
        MediaCommentResponse & { raw: ActionRaw },

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

    Types a comment (text) and taps Post. options.commentCreationKey names the attempt, so a retry with the same key does not post twice. Answers the created comment.