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

    Variable DirectRecipientPickerScreenConst

    DirectRecipientPickerScreen: ScreenDefinition<
        "DirectRecipientPicker",
        "screen",
        { mode: "group"; searchSessionId: string }
        | undefined,
        {
            recipients: readonly {
                full_name: string;
                pk: string;
                username: string;
            }[];
            searchSessionId: string;
            threads: readonly {
                is_group: boolean;
                muted?: boolean;
                preview: readonly {
                    client_context?: string;
                    command_count?: number;
                    edit_count?: number;
                    item_id: string;
                    item_type: string;
                    media?: | {
                        height: number;
                        media_type: 1;
                        pk: string;
                        url: string;
                        width: number;
                    }
                    | {
                        height: number;
                        media_type: 2;
                        pk: string;
                        url: string;
                        width: number;
                    }
                    | {
                        media_type: 8;
                        pk: string;
                        slides: readonly { media_type: (...)
                        | (...); pk: string; url: string }[];
                    };
                    message_ephemeral_lifetime_ms?: string;
                    text?: string;
                    timestamp: string;
                    user_id: string;
                }[];
                thread_id: string;
                thread_title: string;
                thread_v2_id?: string;
                users: readonly {
                    fbid_v2?: string;
                    full_name: string;
                    pk: string;
                    username: string;
                }[];
            }[];
        },
        { mode: "default"
        | "group"; searchSessionId: string },

            | IgCheckpointError
            | IgAccountSuspendedError
            | IgAccountDisabledError
            | IgLoginRequiredError
            | IgUserLoggedOutError,
        | GraphqlJsonHttp
        | MobileApplication
        | MobileNavigation
        | AndroidDirectSurface,
        DirectRecipientPickerActions,
        DirectRecipientPickerItems,
        "DirectThread",
        never,
    > = ...

    DirectRecipientPickerFragment:direct_recipient_picker, the inbox's "New message" screen (Android 451), one screen with two openings: the inbox's openNewMessage() and its own "Group chat" row (startGroupChat), which re-enters it in group mode at the next ordinal — the app names the identity at both, direct_recipient_picker:3:button then :4:button.

    What a person sees: a "To:" search field, the "Group chat" row, the people and — in the default mode, where the search shows threads — the conversations the last search answered. Its enter sends the Direct search's warm start and, behind it, the suggestion list (IGDirectGetPresenceQuery; in 1:1 the answer is empty, so the picker opens with no rows) only when this process has not warmed the search yet — the warm-up is the first Direct screen's, and a picker over an inbox that warmed the process sends neither (AndroidDirectSurface); both are best-effort as the app treats them. The "Group chat" re-entry sends nothing of its own.

    Actions: search(query) is one keystroke's direct_v2/ranked_recipients/ request (mode=raven, max_ig_results=10, the generated-result limits 0), and its answer's rows are the fresh item handles a caller continues from — the visit's list stays what it loaded. Every search of one visit reports the visit's search session (data.searchSessionId, minted when the inbox's "New message" opens the picker and carried through the "Group chat" re-entry) as the request's x-pigeon-session-id, where the other requests report the device's Pigeon session. The mode decides show_threads: true in the 1:1 picker, false in the group picker. Each DirectRecipient row opens the thread with that person (openThread, source button, the next ordinal, direct_thread_creation_omnipicker); each DirectPickerThread row opens that conversation (openThread, source inbox_new_message, the next ordinal). search answers both lists, the answer's rows as fresh item handles: { recipients, threads }. In group mode, createGroup(rows) creates the group with the picked rows and opens the conversation the answer names (direct_thread:5:inbox_new_message).

    How it is reached: DirectInboxScreen.openNewMessage(), then its own startGroupChat().

    No screenshot: the frames of the app show other people's accounts.

    Guide: "New message": the recipient picker