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 | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
peer | InputPeer | Ja | The chat or channel |
enabled | Bool | Ja | Enable or disable content protection |
request_msg_id | int | Nein | 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. |
Antworten
Updates
MTProto RPC
- 400 · CHAT_ADMIN_REQUIRED — Um dies zu tun, müssen Sie in diesem Chat Administrator sein.
- 400 · CHAT_NOT_MODIFIED — An den Chat-Informationen wurden keine Änderungen vorgenommen, da die neuen Informationen, die Sie übergeben haben, mit den aktuellen Informationen identisch sind.
- 400 · PEER_ID_INVALID – Die angegebene Peer-ID ist ungültig.
- 400 · REQUEST_MSG_EXPIRED – Die in request_msg_id angegebene Anfrage ist bereits abgelaufen.