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.

This module can be accessed using the following aliases:

  • flood
CommandDescriptionDisableable
/delfloodIf you want bot to delete messages flooded by user.
/floodGet the current antiflood settings.
/setfloodSet the number of messages after which to take action on a user. Set to ‘0’, ‘off’, or ‘no’ to disable.
/setfloodmodeChoose which action to take on a user who has been flooding. Options: ban/kick/mute
/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)