channels.ToggleAntiSpam¶
- class pyrogram.raw.functions.channels.ToggleAntiSpam[source]¶
Enable or disable the native antispam system.
Usable by Users Bots- Details:
Layer:
229ID:
68F3E4EB
- Parameters:
channel (
InputChannel) – Supergroup ID. The specified supergroup must have at leasttelegram_antispam_group_size_minmembers to enable antispam functionality, as specified by the client configuration parameters.enabled (
bool) – Enable or disable the native antispam system.
- Returns: