🛡 Anti-Spam ​
CAPTCHA, locks, blocklist, flood and raid protection
33 commands in this category
/locks ​
Show active content locks.
| Permission | Everyone |
| Usage | /locks [list] |
| Module | locks |
Examples:
/locks/locks list
TIP
Use 'list' to see all available lock types
/locktypes ​
List all available lock type names.
| Permission | Everyone |
| Usage | /locktypes |
| Module | locks |
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}).
| Permission | Admin |
| Usage | /lock <type> [type2] [### reason] [{mode}] |
| Module | locks |
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.
| Permission | Admin |
| Usage | /unlock <type> [type2] |
| Module | locks |
Examples:
/unlock sticker/unlock url forward
/lockwarns ​
Toggle warnings for lock violations.
| Permission | Admin |
| Usage | `/lockwarns <on |
| Module | locks |
Examples:
/lockwarns on/lockwarns off
/allowlist ​
View or add items to the lock allowlist.
| Permission | Admin |
| Usage | /allowlist [item] [item2] |
| Module | locks |
Examples:
/allowlist/allowlist example.com
/rmallowlist ​
Remove items from the lock allowlist.
| Permission | Admin |
| Usage | /rmallowlist <item> [item2] |
| Module | locks |
Examples:
/rmallowlist example.com
/rmallowlistall ​
Clear the entire lock allowlist.
| Permission | Group Creator |
| Usage | /rmallowlistall |
| Module | locks |
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.
| Permission | Admin |
| Usage | `/captcha [on |
| Module | captcha |
Examples:
/captcha on/captcha off/captcha
/captchamode ​
Set the CAPTCHA challenge type.
| Permission | Admin |
| Usage | `/captchamode <button |
| Module | captcha |
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.
| Permission | Admin |
| Usage | /setcaptchatext <text> |
| Module | captcha |
Examples:
/setcaptchatext Click here to verify
/resetcaptchatext ​
Reset the CAPTCHA button text to default.
| Permission | Admin |
| Usage | /resetcaptchatext |
| Module | captcha |
Examples:
/resetcaptchatext
/captchakick ​
Toggle kicking users who fail to solve the CAPTCHA.
| Permission | Admin |
| Usage | `/captchakick <on |
| Module | captcha |
Examples:
/captchakick on
/captchakicktime ​
Set how long users have to solve the CAPTCHA before being kicked.
| Permission | Admin |
| Usage | /captchakicktime <duration> |
| Module | captcha |
Examples:
/captchakicktime 5m/captchakicktime 1h
TIP
Range: 5 minutes to 1 day
/captcharules ​
Require rules acceptance during CAPTCHA verification.
| Permission | Admin |
| Usage | `/captcharules <on |
| Module | captcha |
Examples:
/captcharules on
/captchamutetime ​
Set auto-unmute duration after CAPTCHA (or disable).
| Permission | Admin |
| Usage | `/captchamutetime <duration |
| Module | captcha |
Examples:
/captchamutetime 10m/captchamutetime off
/blocklist ​
List all blocklist triggers for the chat.
| Permission | Everyone |
| Usage | /blocklist |
| Module | blocklist |
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.).
| Permission | Admin |
| Usage | /addblocklist <trigger> [reason] [{mode}] |
| Module | blocklist |
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.
| Permission | Admin |
| Usage | /rmblocklist <trigger> or (trigger1, trigger2) |
| Module | blocklist |
Examples:
/rmblocklist spam/rmblocklist (spam, badword)
/rmblocklistall ​
Remove all blocklist triggers.
| Permission | Group Creator |
| Usage | /rmblocklistall |
| Module | blocklist |
Examples:
/rmblocklistall
TIP
Creator only
/blocklistmode ​
Set the default action for blocklist matches.
| Permission | Admin |
| Usage | `/blocklistmode <nothing |
| Module | blocklist |
Examples:
/blocklistmode ban/blocklistmode warn
/blocklistdelete ​
Toggle deleting messages that match the blocklist.
| Permission | Admin |
| Usage | `/blocklistdelete <on |
| Module | blocklist |
Examples:
/blocklistdelete on
/setblocklistreason ​
Set a default reason for blocklist actions.
| Permission | Admin |
| Usage | /setblocklistreason <reason> |
| Module | blocklist |
Examples:
/setblocklistreason Matched blocklist trigger
/resetblocklistreason ​
Reset the blocklist reason to default.
| Permission | Admin |
| Usage | /resetblocklistreason |
| Module | blocklist |
Examples:
/resetblocklistreason
/flood ​
Show current antiflood settings.
| Permission | Everyone |
| Usage | /flood |
| Module | antiflood |
Examples:
/flood
/setflood ​
Set the flood message limit or disable.
| Permission | Admin |
| Usage | `/setflood <2-100 |
| Module | antiflood |
Examples:
/setflood 10/setflood off
/setfloodtimer ​
Set the flood detection time window.
| Permission | Admin |
| Usage | /setfloodtimer <duration> |
| Module | antiflood |
Examples:
/setfloodtimer 5m/setfloodtimer 30s
TIP
Range: 5 seconds to 1 day
/setfloodmode ​
Set the action taken when a user floods.
| Permission | Admin |
| Usage | `/setfloodmode <ban |
| Module | antiflood |
Examples:
/setfloodmode mute/setfloodmode tban
/clearflood ​
Toggle deleting all flood messages when triggered.
| Permission | Admin |
| Usage | `/clearflood <on |
| Module | antiflood |
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.
| Permission | Admin |
| Usage | `/antiraid [on |
| Module | antiraid |
Examples:
/antiraid on/antiraid off/antiraid
/raidtime ​
Set how long antiraid mode stays active.
| Permission | Admin |
| Usage | /raidtime <duration> |
| Module | antiraid |
Examples:
/raidtime 6h/raidtime 1d
TIP
Range: 5 minutes to 7 days
/raidactiontime ​
Set the action window duration for raid kicks.
| Permission | Admin |
| Usage | /raidactiontime <duration> |
| Module | antiraid |
Examples:
/raidactiontime 1h/raidactiontime 30m
TIP
Range: 1 minute to 1 day
/autoantiraid ​
Auto-enable raid mode when N users join within 1 minute.
| Permission | Admin |
| Usage | `/autoantiraid <2-100 |
| Module | antiraid |
Examples:
/autoantiraid 10/autoantiraid off