getChats

Get chats from a chat list. User-only.

PARAMETERS
from?: "main" | "archived"

The chat list to get the chats from. Defaults to main.

after?: ChatListItem

The last chat to get chats after.

limit?: number

The maximum number of results to return. Must be in the range of 1-100. Defaults to 100.

RESULT
SYNTAX
// Optional parameters.
// Any of the optional parameters can be omitted.
await client.getChats( { from, after, limit });