Skip to content

Bans Commands

Sometimes users can be annoying and you might want to remove them from your chat, this module exactly helps you to deal with that!. Ban/kick users from your chat, and unban them later on if they’re behaving themselves.

User Commands: × /kickme: kicks the user who issued the command.

Ban Commands (Admin only): × /ban : bans a user. (via handle, or reply) × /sban : bans a user silently, does not send message to group and also deletes your command. (via handle, or reply) × /dban : bans a user and delete the replied message. (via handle, or reply) × /tban x(m/h/d): bans a user for x time. (via handle, or reply). m = minutes, h = hours, d = days. × /unban : unbans a user. (via handle, or reply)

Restrict Commands: (Admin only) × /restrict: Shows an InlineKeyboard to choose options from kick, ban and mute × /unrestrict: Shows an InlineKeyboard to choose options from unmute and unban.

This module can be accessed using the following aliases:

  • ban
  • kick
  • dkick
  • restrict
  • kickme
  • unrestrict
  • sban
  • dban
  • tban
  • unban
CommandDescriptionDisableable
/banbans a user. (via handle, or reply)
/dbanbans a user and delete the replied message. (via handle, or reply)
/dkickNo description available
/kickkicks the user who issued the command.
/kickmekicks the user who issued the command.
/restrictShows an InlineKeyboard to choose options from kick, ban and mute
/sbanbans a user silently, does not send message to group and also deletes your command. (via handle, or reply)
/tbanbans a user for x time. (via handle, or reply). m = minutes, h = hours, d = days.
/unbanunbans a user. (via handle, or reply)
/unrestrictShows an InlineKeyboard to choose options from unmute and unban.
/ban
/dban
/dkick

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)