messages.toggleNoForwards
Enable or disable content protection on a channel, group or private chat.
Enable or disable [content protection](https://core.telegram.org/api/content-protection.md) on a channel, group or private chat.
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputPeer | Yes | The chat or channel |
enabled | Bool | Yes | Enable or disable content protection |
request_msg_id | int | No | Used only inside private chats to accept or refuse a request to disable content protection, see [here »](https://core.telegram.org/api/content-protection.md#for-users) for more info on the full flow. |
Responses
Updates
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 · PEER_ID_INVALID — The provided peer id is invalid.
- 400 · REQUEST_MSG_EXPIRED — The request specified in request_msg_id has already expired.