View Source ExTDLib.Method.ToggleSupergroupHasAggressiveAntiSpamEnabled (ExTDLib v0.0.4)

Toggles whether aggressive anti-spam checks are enabled in the supergroup. Can be called only if supergroupFullInfo.can_toggle_aggressive_anti_spam == true. Returns object_ptr<Ok>.

NameTypeDescription
supergroup_idstringThe identifier of the supergroup, which isn't a broadcast group.
has_aggressive_anti_spam_enabledboolThe new value of has_aggressive_anti_spam_enabled.

More details on telegram's documentation.