messages.unpinAllMessages
Unpin all pinned messages
[Unpin](https://core.telegram.org/api/pin.md) all pinned messages
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | Chat where to unpin |
top_msg_id | int | No | [Forum topic](https://core.telegram.org/api/forum.md#forum-topics) where to unpin |
saved_peer_id | InputPeer | No | If set, must be equal to the ID of a [monoforum topic](https://core.telegram.org/api/monoforum.md), and will unpin all messages pinned in the passed monoforum topic. |
Replies
messages.AffectedHistory
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 400 · CHAT_NOT_MODIFIED — No changes were made to chat information because the new information you passed is identical to the current information.
- 400 · INPUT_USER_DEACTIVATED — The specified user was deleted.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.