channels.toggleForum
Enable or disable forum functionality in a supergroup.
Enable or disable [forum functionality](https://core.telegram.org/api/forum.md) in a supergroup.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
channel | InputChannel | はい | Supergroup ID |
enabled | Bool | はい | Enable or disable forum functionality |
tabs | Bool | はい | If true enables the tabbed forum UI, otherwise enables the list-based forum UI. |
sidebar | Bool | はい | TL 型 `Bool` の値。 |
レスポンス
Updates
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 400 · CHAT_DISCUSSION_UNALLOWED — You can't enable forum topics in a discussion group linked to a channel.
- 400 · CHAT_ID_INVALID — The provided chat id is invalid.
- 400 · CHAT_NOT_MODIFIED — No changes were made to chat information because the new information you passed is identical to the current information.