editTopic

Edit a forum topic.

Parameters

chatId: ID

The identifier of a chat.

topicId: number

The identifier of the topic.

title: string

The new title of the topic.

customEmojiId?: string

Identifier of a custom emoji to display as the icon of the topic.

Result

The new topic.

Syntax

// Required parameters only.
await client.editTopic(chatId, topicId, title);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.editTopic(chatId, topicId, title, { customEmojiId });