telegram api method · layer 215 · #6c2d9026
channels.updatePinnedForumTopic
not in the latest layer 229: last defined in layer 215
definition
channels.updatePinnedForumTopic#6c2d9026 channel:InputChannel topic_id:int pinned:Bool = Updates;
parameters
| name | type | description |
|---|---|---|
channel | InputChannel | |
topic_id | int | |
pinned | Bool |
returns
errors (7)
| 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 | PINNED_TOO_MUCH | There are too many pinned topics, unpin some first. |
| 400 | PINNED_TOPIC_NOT_MODIFIED | The specified topic is already pinned. |
| 400 | TOPIC_ID_INVALID | The specified topic ID is invalid. |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
history
present in layers 148–215
| id | layers |
|---|---|
| #6c2d9026 | 148–215 |