messages.updatePinnedForumTopic
Pin or unpin forum topics
Pin or unpin [forum topics](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 | [Forum topic ID](https://core.telegram.org/api/forum.md) |
pinned | Bool | Yes | Whether to pin or unpin the topic |
Responses
Updates
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.