# channels.updatePinnedForumTopic

Pin or unpin [forum topics](/api/forum.md)

No such method in the current schema.

### Parameters

| Name | Type | Description |
| --- | :---: | --- |
| **channel** | [InputChannel](/type/InputChannel.md) | Supergroup ID |
| **topic\_id** | [int](/type/int.md) | [Forum topic ID](/api/forum.md) |
| **pinned** | [Bool](/type/Bool.md) | Whether to pin or unpin the topic |

### Result
[Updates](/type/Updates.md)

### Only users can use this method

### Possible errors

| Code | Type | Description |
| --- | --- | --- |
| 400 | CHANNEL\_INVALID | The provided channel is invalid. |
| 400 | PINNED\_TOO\_MUCH | There are too many pinned topics, unpin some first. |
| 400 | TOPIC\_ID\_INVALID | The specified topic ID is invalid. |

### Related pages

#### [Forums](/api/forum.md)
Telegram allows creating forums with multiple distinct topics.