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

    Function directPickerThreadOf

    • Internal

      Reads one ranked_recipients thread row (a search that shows threads) into the row the thread screen opens from; a row in a shape this model does not know yields undefined. The row names the other people and no message.

      The Direct screens' own decoder; no published declaration names it.

      Parameters

      • value: unknown

      Returns
          | {
              is_group: boolean;
              muted?: boolean;
              preview: readonly {
                  client_context?: string;
                  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: 1
                      | 2; pk: string; url: 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;
              }[];
          }
          | undefined

      • {
            is_group: boolean;
            muted?: boolean;
            preview: readonly {
                client_context?: string;
                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: 1
                        | 2; pk: string; url: 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;
            }[];
        }
        • Readonlyis_group: boolean
        • Optional Readonlymuted?: boolean
        • Readonlypreview: readonly {
              client_context?: string;
              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: 1
                      | 2; pk: string; url: string }[];
                  };
              text?: string;
              timestamp: string;
              user_id: string;
          }[]

          The messages the row previews, newest first (none on a picker row).

        • Readonlythread_id: string

          The thread's long id, which the message broadcasts address.

        • Readonlythread_title: string
        • Optional Readonlythread_v2_id?: string
        • Readonlyusers: readonly { fbid_v2?: string; full_name: string; pk: string; username: string }[]

          The other people of the conversation, in the row's order.

      • undefined