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

    Function directInboxThreadOf

    • Internal

      One row of the Direct list from a thread of the app's local inbox store: the one projection the inbox and the share sheet read, so a stored thread shows the same fields wherever it is listed.

      Parameters

      • thread: {
            is_group: boolean;
            items: readonly {
                client_context?: string;
                item_id: string;
                item_type: string;
                text?: string;
                timestamp: string | number;
                user_id: string;
            }[];
            last_activity_at: string
            | number;
            muted: boolean;
            thread_id: string;
            thread_title: string;
            thread_v2_id: string;
            users: readonly {
                fbid_v2?: string;
                full_name: string;
                pk: string;
                username: string;
            }[];
        }

      Returns {
          is_group: boolean;
          last_activity_at: string;
          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
      • Readonlylast_activity_at: string
      • 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;
        }[]
      • Readonlythread_id: string

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

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