telegram api method · layer 215 · #f4dfa185
channels.editForumTopic
not in the latest layer 229: last defined in layer 215
definition
channels.editForumTopic#f4dfa185 flags:# channel:InputChannel topic_id:int title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = Updates;
parameters
| name | type | description |
|---|---|---|
flags | # | |
channel | InputChannel | |
topic_id | int | |
title | string | |
icon_emoji_id | long | |
closed | Bool | |
hidden | Bool |
returns
errors (11)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | CHANNEL_FORUM_MISSING | This supergroup is not a forum. |
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | DOCUMENT_INVALID | The specified document is invalid. |
| 400 | GENERAL_MODIFY_ICON_FORBIDDEN | You can't modify the icon of the "General" topic. |
| 400 | NOGENERAL_HIDE_FORBIDDEN | Only the "General" topic with id=1 can be hidden. |
| 400 | TOPIC_CLOSE_SEPARATELY | The close flag cannot be provided together with any of the other flags. |
| 400 | TOPIC_HIDE_SEPARATELY | The hide flag cannot be provided together with any of the other flags. |
| 400 | TOPIC_ID_INVALID | The specified topic ID is invalid. |
| 400 | TOPIC_NOT_MODIFIED | The updated topic info is equal to the current topic info, nothing was changed. |
| 403 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
history
present in layers 148–215 · constructor id changed 1×
| id | layers |
|---|---|
| #6c883e2d | 148–149 |
| #f4dfa185 | 150–215 |