Skip to content

Function: getPendingInbox() ​

ts
function getPendingInbox(client, options?): Promise<Page<{
[key: string]: unknown;
  is_group?: boolean;
  items?: object[];
  last_activity_at?: string;
  last_permanent_item?: {
   [key: string]: unknown;
     item_id?: string;
     item_type?: string;
     text?: string;
     timestamp?: string;
     user_id?: string;
  };
  thread_id?: string;
  thread_title?: string;
  users?: object[];
}>>;

One page of the pending inbox (message requests). Pass cursor to continue.

Parameters ​

ParameterType
clientPrivateClient
options?CursorOptions

Returns ​

Promise<Page<{ [key: string]: unknown; is_group?: boolean; items?: object[]; last_activity_at?: string; last_permanent_item?: { [key: string]: unknown; item_id?: string; item_type?: string; text?: string; timestamp?: string; user_id?: string; }; thread_id?: string; thread_title?: string; users?: object[]; }>>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.