messages.editForumTopic
Edit forum topic.
Edit [forum topic](https://core.telegram.org/api/forum.md).
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |
topic_id | int | Yes | Topic ID |
title | string | No | If present, will update the topic title (maximum UTF-8 length: 128). |
icon_emoji_id | long | No | If present, updates the [custom emoji](https://core.telegram.org/api/custom-emoji.md) used as topic icon. [Telegram Premium](https://core.telegram.org/api/premium.md) users can use any custom emoji, other users can only use the custom emojis contained in the [inputStickerSetEmojiDefaultTopicIcons](https://core.telegram.org/constructor/inputStickerSetEmojiDefaultTopicIcons.md) emoji pack. Pass 0 to switch to the fallback topic icon. |
closed | Bool | No | If present, will update the open/closed status of the topic. |
hidden | Bool | No | If present, will hide/unhide the topic (only valid for the "General" topic, `id=1`). |
Responses
Updates
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · TOPIC_CLOSE_SEPARATELY — The close flag cannot be provided together with any of the other flags.
- 400 · TOPIC_NOT_MODIFIED — The updated topic info is equal to the current topic info, nothing was changed.