getChats
Get chats from a chat list. User-only.
Parameters
from?: "main" | "archived"
The chat list to get the chats from. Defaults to main.
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 });