setAntispamEnabled
Enable or disable automatic anti-spam in a group. User-only.
Parameters
The identifier of a group.
enabled: boolean
Whether automatic anti-spam should be enabled in the group.
Result
void
Syntax
await client.setAntispamEnabled(chatId, enabled);