getSavedChats
Get a list of saved chats.
Parameters
offsetId?: number
The identifier of a message. If specified, the list of chats will be fetched from that message.
offsetDate?: number
A point in time. If specified, the list of chats will be fetched from that date.
A chat ID. If specified, the list of chats will be fetched from that chat.
addOffset?: number
Additional offset.
limit?: number
The maximum number of results to return. Must be in the range of 1-100. Defaults to 100.
excludePinned?: boolean
Whether to exclude pinned chats.
Result
Syntax
// Optional parameters.
// Any of the optional parameters can be omitted.
await client.getSavedChats( {
offsetId,
offsetDate,
offsetChatId,
addOffset,
limit,
excludePinned,
});