Skip to content

🛡 Anti-Spam ​

CAPTCHA, locks, blocklist, flood and raid protection

33 commands in this category

/locks ​

Show active content locks.

PermissionEveryone
Usage/locks [list]
Modulelocks

Examples:

  • /locks
  • /locks list

TIP

Use 'list' to see all available lock types


/locktypes ​

List all available lock type names.

PermissionEveryone
Usage/locktypes
Modulelocks

Examples:

  • /locktypes

/lock ​

Locked content from non-admins is automatically deleted. You can lock multiple types at once. Supports optional reason (### reason) and mode override ({mode}).

PermissionAdmin
Usage/lock <type> [type2] [### reason] [{mode}]
Modulelocks

Examples:

  • /lock sticker
  • /lock url forward
  • /lock gif ### no gifs allowed
  • /lock photo {warn}

TIP

See /locktypes for all available types


/unlock ​

Unlock one or more content types.

PermissionAdmin
Usage/unlock <type> [type2]
Modulelocks

Examples:

  • /unlock sticker
  • /unlock url forward

/lockwarns ​

Toggle warnings for lock violations.

PermissionAdmin
Usage`/lockwarns <on
Modulelocks

Examples:

  • /lockwarns on
  • /lockwarns off

/allowlist ​

View or add items to the lock allowlist.

PermissionAdmin
Usage/allowlist [item] [item2]
Modulelocks

Examples:

  • /allowlist
  • /allowlist example.com

/rmallowlist ​

Remove items from the lock allowlist.

PermissionAdmin
Usage/rmallowlist &lt;item&gt; [item2]
Modulelocks

Examples:

  • /rmallowlist example.com

/rmallowlistall ​

Clear the entire lock allowlist.

PermissionGroup Creator
Usage/rmallowlistall
Modulelocks

Examples:

  • /rmallowlistall

TIP

Creator only


/captcha ​

When enabled, new members are muted and must complete a challenge before they can send messages. Without arguments, shows the current settings.

PermissionAdmin
Usage`/captcha [on
Modulecaptcha

Examples:

  • /captcha on
  • /captcha off
  • /captcha

/captchamode ​

Set the CAPTCHA challenge type.

PermissionAdmin
Usage`/captchamode <button
Modulecaptcha

Examples:

  • /captchamode math
  • /captchamode button

TIP

button: click to verify. text: type a code. math: solve addition. custom: custom button text.


/setcaptchatext ​

Set custom text for the CAPTCHA verification button.

PermissionAdmin
Usage/setcaptchatext &lt;text&gt;
Modulecaptcha

Examples:

  • /setcaptchatext Click here to verify

/resetcaptchatext ​

Reset the CAPTCHA button text to default.

PermissionAdmin
Usage/resetcaptchatext
Modulecaptcha

Examples:

  • /resetcaptchatext

/captchakick ​

Toggle kicking users who fail to solve the CAPTCHA.

PermissionAdmin
Usage`/captchakick <on
Modulecaptcha

Examples:

  • /captchakick on

/captchakicktime ​

Set how long users have to solve the CAPTCHA before being kicked.

PermissionAdmin
Usage/captchakicktime &lt;duration&gt;
Modulecaptcha

Examples:

  • /captchakicktime 5m
  • /captchakicktime 1h

TIP

Range: 5 minutes to 1 day


/captcharules ​

Require rules acceptance during CAPTCHA verification.

PermissionAdmin
Usage`/captcharules <on
Modulecaptcha

Examples:

  • /captcharules on

/captchamutetime ​

Set auto-unmute duration after CAPTCHA (or disable).

PermissionAdmin
Usage`/captchamutetime <duration
Modulecaptcha

Examples:

  • /captchamutetime 10m
  • /captchamutetime off

/blocklist ​

List all blocklist triggers for the chat.

PermissionEveryone
Usage/blocklist
Moduleblocklist

Examples:

  • /blocklist

/addblocklist ​

Supports single words, "quoted phrases", batch (word1, "phrase 2"), type prefixes (exact:, prefix:, lookalike:, stickerpack:, file:, forward:, inline:, username:, name:), and per-trigger mode override ({ban}, {mute}, etc.).

PermissionAdmin
Usage/addblocklist &lt;trigger&gt; [reason] [{mode}]
Moduleblocklist

Examples:

  • /addblocklist spam
  • /addblocklist "buy followers" advertising {ban}
  • /addblocklist (spam, "crypto scam", badword)
  • /addblocklist lookalike:hello

TIP

Max trigger length: 100 characters


/rmblocklist ​

Remove one or more blocklist triggers.

PermissionAdmin
Usage/rmblocklist &lt;trigger&gt; or (trigger1, trigger2)
Moduleblocklist

Examples:

  • /rmblocklist spam
  • /rmblocklist (spam, badword)

/rmblocklistall ​

Remove all blocklist triggers.

PermissionGroup Creator
Usage/rmblocklistall
Moduleblocklist

Examples:

  • /rmblocklistall

TIP

Creator only


/blocklistmode ​

Set the default action for blocklist matches.

PermissionAdmin
Usage`/blocklistmode <nothing
Moduleblocklist

Examples:

  • /blocklistmode ban
  • /blocklistmode warn

/blocklistdelete ​

Toggle deleting messages that match the blocklist.

PermissionAdmin
Usage`/blocklistdelete <on
Moduleblocklist

Examples:

  • /blocklistdelete on

/setblocklistreason ​

Set a default reason for blocklist actions.

PermissionAdmin
Usage/setblocklistreason &lt;reason&gt;
Moduleblocklist

Examples:

  • /setblocklistreason Matched blocklist trigger

/resetblocklistreason ​

Reset the blocklist reason to default.

PermissionAdmin
Usage/resetblocklistreason
Moduleblocklist

Examples:

  • /resetblocklistreason

/flood ​

Show current antiflood settings.

PermissionEveryone
Usage/flood
Moduleantiflood

Examples:

  • /flood

/setflood ​

Set the flood message limit or disable.

PermissionAdmin
Usage`/setflood <2-100
Moduleantiflood

Examples:

  • /setflood 10
  • /setflood off

/setfloodtimer ​

Set the flood detection time window.

PermissionAdmin
Usage/setfloodtimer &lt;duration&gt;
Moduleantiflood

Examples:

  • /setfloodtimer 5m
  • /setfloodtimer 30s

TIP

Range: 5 seconds to 1 day


/setfloodmode ​

Set the action taken when a user floods.

PermissionAdmin
Usage`/setfloodmode <ban
Moduleantiflood

Examples:

  • /setfloodmode mute
  • /setfloodmode tban

/clearflood ​

Toggle deleting all flood messages when triggered.

PermissionAdmin
Usage`/clearflood <on
Moduleantiflood

Examples:

  • /clearflood on

/antiraid ​

When active, new members joining the group are immediately kicked. Without arguments, shows current settings including raid time and auto-detection threshold.

PermissionAdmin
Usage`/antiraid [on
Moduleantiraid

Examples:

  • /antiraid on
  • /antiraid off
  • /antiraid

/raidtime ​

Set how long antiraid mode stays active.

PermissionAdmin
Usage/raidtime &lt;duration&gt;
Moduleantiraid

Examples:

  • /raidtime 6h
  • /raidtime 1d

TIP

Range: 5 minutes to 7 days


/raidactiontime ​

Set the action window duration for raid kicks.

PermissionAdmin
Usage/raidactiontime &lt;duration&gt;
Moduleantiraid

Examples:

  • /raidactiontime 1h
  • /raidactiontime 30m

TIP

Range: 1 minute to 1 day


/autoantiraid ​

Auto-enable raid mode when N users join within 1 minute.

PermissionAdmin
Usage`/autoantiraid <2-100
Moduleantiraid

Examples:

  • /autoantiraid 10
  • /autoantiraid off