Methods

getTopics

Get the topics of a forum chat. USER-ONLY

Parameters

chatId: ID

The identifier of the chat.

offsetId?: number

Offset message ID from a previous result.

offsetTopicId?: number

Offset topic ID from a previous result.

offsetDate?: number

Offset date from a previous result.

limit?: number

The maximum number of results to return.

Result

Syntax

// Required parameters only.
await client.getTopics(chatId);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.getTopics(chatId, {
    offsetId,
    offsetTopicId,
    offsetDate,
    limit,
});