Skip to content

Antiflood Commands

You know how sometimes, people join, send 100 messages, and ruin your chat? With antiflood, that happens no more!

Antiflood allows you to take action on users that send more than x messages in a row. Actions are: ban/kick/mute

Admin commands: × /flood: Get the current antiflood settings. × /setflood <number/off/no>: Set the number of messages after which to take action on a user. Set to ‘0’, ‘off’, or ‘no’ to disable. × /setfloodmode <action type>: Choose which action to take on a user who has been flooding. Options: ban/kick/mute × /delflood <yes/no/on/off>: If you want bot to delete messages flooded by user.

These are help-menu module names, not command aliases.

This module can be accessed using the following aliases:

  • flood
CommandDescriptionDisableable
/delfloodToggle deletion of flood messages
/floodShow current flood settings
/setfloodSet flood message count threshold
/setfloodmodeSet action taken on flood detection
/delflood
/flood
/setflood

For detailed command usage, refer to the commands table above.

Most commands in this module require admin permissions in the group.

Bot Permissions Required:

  • Delete messages
  • Ban users
  • Restrict users
  • Pin messages (if applicable)

Default Behavior Antiflood is disabled by default. You must explicitly enable it using /setflood &lt;number&gt;.