channels.toggleAntiSpam
Enable or disable the native antispam system.
Enable or disable the [native antispam system](https://core.telegram.org/api/antispam.md).
| Name | Type | Required | Description |
|---|---|---|---|
channel | InputChannel | Yes | 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 | Yes | Enable or disable the native antispam system. |
Replies
Updates
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · CHAT_NOT_MODIFIED — No changes were made to chat information because the new information you passed is identical to the current information.