Skip to content

Function: getThread() ​

ts
function getThread(
   client, 
   threadId, 
   options?
): Promise<Page<{
[key: string]: unknown;
  item_id?: string;
  item_type?: string;
  text?: string;
  timestamp?: string;
  user_id?: string;
}>>;

One page of a thread's messages (newest first). Pass cursor to continue.

Parameters ​

ParameterType
clientPrivateClient
threadIdstring
options?CursorOptions

Returns ​

Promise<Page<{ [key: string]: unknown; item_id?: string; item_type?: string; text?: string; timestamp?: string; user_id?: string; }>>

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