channels.toggleAntiSpam
Enable or disable the native antispam system.
Enable or disable the [native antispam system](https://core.telegram.org/api/antispam.md).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
channel | InputChannel | Ja | Supergroup ID. The specified supergroup must have at least `telegram_antispam_group_size_min` members to enable antispam functionality, as specified by the [client configuration parameters](https://core.telegram.org/api/config.md#client-configuration). |
enabled | Bool | Ja | Enable or disable the native antispam system. |
Antworten
Updates
MTProto RPC
- 400 · CHANNEL_INVALID – Der angegebene Kanal ist ungültig.
- 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.