toggle_anti_spam()¶
- async Client.toggle_anti_spam()¶
Toggle the anti-spam filter in a supergroup.
Usable by Users Bots- Parameters:
enabled (bool, *optional*) – Whether anti-spam is enabled
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.
- Returns:
Example
await app.toggle_anti_spam(chat_id, ...)