messages.editForumTopic
Edit forum topic.
Edit [forum topic](https://core.telegram.org/api/forum.md).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
peer | InputPeer | Ja | The supergroup forum, private chat (for forum-enabled bots) or bot forum (for users) where the topic is located. |
topic_id | int | Ja | Topic ID |
title | string | Nein | If present, will update the topic title (maximum UTF-8 length: 128). |
icon_emoji_id | long | Nein | 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 | Nein | If present, will update the open/closed status of the topic. |
hidden | Bool | Nein | If present, will hide/unhide the topic (only valid for the "General" topic, `id=1`). |
Antworten
Updates
MTProto RPC
- 400 · CHANNEL_INVALID – Der angegebene Kanal ist ungültig.
- 400 · TOPIC_CLOSE_SEPARATELY – Das Flag close kann nicht zusammen mit einem der anderen Flags bereitgestellt werden.
- 400 · TOPIC_NOT_MODIFIED — Die aktualisierten Themeninformationen entsprechen den aktuellen Themeninformationen, es wurde nichts geändert.