Command reference
Every moderation command, in one place
203 commands and aliases across 26 areas — the same names and syntax you already use, so nothing has to be relearned. Bring an existing setup across with /export and /import.
And then there’s the part a moderation bot can’t do
The commands below are table stakes. What makes Knowa one bot instead of two is that the same bot reads your documentation and answers the questions your members actually came to ask.
- Answers members' questions from your documentationAdd a GitBook link, text or files — answers come only from what you gave it.
- Hands off to a human when it doesn't knowForwards the exact message to your admin with a tap-to-answer button.
- Reads screenshots and error messagesMembers can attach an image with the question.
- Replies in 100+ languages automaticallyOr pin a chat to one language with /setlang.
- Fully white-label — your name, avatar and voiceMembers never see another brand in your group.
- Answers on your website tooA drop-in chat widget and a REST API share the same knowledge base.
Restrictions
Bans, kicks and mutes, each with a silent variant that leaves no message in the chat and a delete variant that removes the offending message first. Durations accept minutes, hours, days and weeks.
| Command | What it does | Who |
|---|---|---|
/ban | Ban a user. /ban <reply|@user|id> [reason] | Admins |
/sban | Ban silently, with no message in the chat. | Admins |
/dban | Delete the replied-to message and ban its sender. | Admins |
/tban | Ban for a while. /tban <user> <2h|3d|1w> [reason] | Admins |
/unban | Lift a ban so the user can rejoin. | Admins |
/kick/punch | Remove a user. They can rejoin. | Admins |
/skick | Kick silently. | Admins |
/dkick | Delete the replied-to message and kick its sender. | Admins |
/mute | Stop a user speaking until you unmute them. | Admins |
/smute | Mute silently. | Admins |
/dmute | Delete the replied-to message and mute its sender. | Admins |
/tmute | Mute for a while. /tmute <user> <10m|2h|1d> [reason] | Admins |
/unmute | Let a muted user speak again. | Admins |
/kickme | Removes you from the chat. | Anyone |
Warnings
Warnings stack up to a limit you set, then trigger whatever punishment you choose. They can expire on their own so an old strike doesn't follow someone forever.
| Command | What it does | Who |
|---|---|---|
/warn | Warn a user. /warn <reply|@user|id> [reason] | Admins |
/swarn | Warn silently. | Admins |
/dwarn | Delete the replied-to message and warn its sender. | Admins |
/warns/warnings | See your warnings, or someone else's. | Anyone |
/rmwarn | Remove a user's most recent warning. | Admins |
/resetwarn/resetwarns | Clear all of a user's warnings. | Admins |
/resetallwarns | Clear every warning in the chat. Owner only. | Owner |
/setwarnlimit | How many warnings before the punishment. /setwarnlimit 5 | Admins |
/setwarnmode | What happens at the limit. /setwarnmode tmute 1w | Admins |
/setwarntime/warntime | How long warnings last. /setwarntime 12w or off | Admins |
Admins
Admin lists come from Telegram itself and are cached, so /admincache is there for the moment after you change someone's rights.
| Command | What it does | Who |
|---|---|---|
/adminlist/admins | List the chat's admins. | Anyone |
/admincache | Re-read the admin list after you've changed someone's rights. | Admins |
/promote | Make a user an admin. /promote <reply|@user|id> | Admins |
/demote | Remove a user's admin rights. | Admins |
/adminerror | Whether I tell members off for using admin commands. /adminerror off | Admins |
/anonadmin | Allow anonymous admins to run commands. /anonadmin on | Admins |
Approvals
Approved users skip locks, blocklists, antiflood and CAPTCHA without becoming admins — useful for long-standing members and your own team.
| Command | What it does | Who |
|---|---|---|
/approve | Exempt a user from the automated filters. | Admins |
/unapprove | Remove a user's approval. | Admins |
/approval | Check whether a user is approved. | Anyone |
/approved | List every approved user. | Admins |
/unapproveall | Clear every approval. Owner only. | Owner |
Purges
Delete one message, a run of messages from a reply onwards, a fixed count, or an exact range marked with /purgefrom and /purgeto.
| Command | What it does | Who |
|---|---|---|
/del | Delete the message you're replying to. | Admins |
/purge | Delete everything from the replied-to message onwards, or /purge 15. | Admins |
/spurge | Purge without leaving a confirmation. | Admins |
/purgefrom | Mark the start of a purge. Then use /purgeto at the end. | Admins |
/purgeto | Delete everything between /purgefrom and here. | Admins |
Pins
Pin quietly or loudly, post a formatted message and pin it in one step, and stop the linked channel hijacking your pin.
| Command | What it does | Who |
|---|---|---|
/pin | Pin the message you're replying to. Add loud to notify everyone. | Admins |
/permapin | Post a message as me and pin it. Supports formatting and buttons. | Admins |
/unpin | Unpin the current pin, or the message you're replying to. | Admins |
/unpinall | Unpin every pinned message. Owner only. | Owner |
/antichannelpin | Stop the linked channel's posts auto-pinning. /antichannelpin on | Admins |
/cleanlinked | Delete posts forwarded in from the linked channel. /cleanlinked on | Admins |
Locks
48 content types you can switch off, individually or in a batch. Each lock can carry its own reason and punishment using the ### syntax, and nine of them take allowlists.
| Command | What it does | Who |
|---|---|---|
/locktypes | List everything that can be locked. | Admins |
/locks | Show what's locked. /locks list shows every type's status. | Admins |
/lock | Lock content types. /lock gif video sticker or /lock url ### No links {ban} | Admins |
/unlock | Unlock content types. /unlock gif sticker | Admins |
/lockwarns | Tell members off when a lock deletes their message. /lockwarns on | Admins |
/allowlist/whitelist | Exempt something from a lock. /allowlist wikipedia.org @pic /website | Admins |
/rmallowlist/rmwhitelist | Remove allowlist entries. /rmallowlist wikipedia.org | Admins |
/rmallowlistall/rmwhitelistall | Clear the whole allowlist. Owner only. | Owner |
Blocklists
Block words and phrases with * and ? wildcards, several triggers at once with (a, b, "c"), and prefixed matchers for filenames, forwards, inline bots, names, usernames and sticker packs.
| Command | What it does | Who |
|---|---|---|
/addblocklist/addblacklist | Block words or phrases. /addblocklist (spam, "buy now") Not here {tban 2w} | Admins |
/rmblocklist/unblocklist · /rmblacklist | Unblock a trigger. /rmblocklist spam | Admins |
/blocklist/blacklist | Show the chat's blocklist. | Admins |
/rmblocklistall/rmblacklistall | Clear the whole blocklist. Owner only. | Owner |
/blocklistmode/blacklistmode | What happens on a match. /blocklistmode tban 2w | Admins |
/blocklistdelete/blacklistdelete | Whether matching messages get deleted. /blocklistdelete off | Admins |
/setblocklistreason/blocklistreason · /setblacklistreason | Default message shown when something is blocked. | Admins |
Antiflood
Two counters: messages in a row, and messages inside a time window. Either one can trigger a warn, mute, kick or ban, and the whole burst can be deleted rather than just the last message.
| Command | What it does | Who |
|---|---|---|
/flood | Show the chat's flood settings. | Admins |
/setflood | Limit messages in a row. /setflood 10 or off | Admins |
/setfloodtimer | Limit messages per time window. /setfloodtimer 10 30s or off | Admins |
/setfloodmode/floodmode | What happens on a flood. /setfloodmode tmute 30m | Admins |
/clearflood | Delete the whole flood, not just the last message. /clearflood on | Admins |
/resetflood | Forget a user's flood counters. | Admins |
AntiRaid
Temporarily ban everyone who joins while a raid is in progress. Turn it on by hand, or let it arm itself once joins cross a threshold you set.
| Command | What it does | Who |
|---|---|---|
/antiraid | Temporarily ban everyone who joins. /antiraid on, /antiraid 2h, /antiraid off | Admins |
/autoantiraid | Turn antiraid on automatically after a burst of joins. /autoantiraid 15 | Admins |
/raidtime | How long antiraid stays on. /raidtime 6h | Admins |
/raidactiontime | How long raid joiners are banned for. /raidactiontime 1h | Admins |
CAPTCHA
New members are muted until they prove they're human. Four challenge types: a single button, an emoji to pick, a word to read, or simple arithmetic.
| Command | What it does | Who |
|---|---|---|
/captcha | Make new members prove they're human. /captcha on, /captcha math | Admins |
/captchamode | Pick the challenge type. /captchamode math | Admins |
/captchakick | Kick members who never solve the CAPTCHA. /captchakick on | Admins |
/captchakicktime | How long before an unsolved CAPTCHA is kicked. /captchakicktime 30m | Admins |
/captchamutetime | Auto-unmute after a while even if unsolved. /captchamutetime 1d or off | Admins |
/captcharules | Show a rules button with the CAPTCHA. /captcharules on | Admins |
/setcaptchatext/captchatext | Custom text for the CAPTCHA button. /setcaptchatext Let me in | Admins |
Greetings
Welcomes and goodbyes with the full markdown dialect, buttons, %%% random variants and every filling — plus punishments you can attach to a join.
| Command | What it does | Who |
|---|---|---|
/welcome | Show or toggle the welcome message. /welcome on|off|noformat | Admins |
/setwelcome | Set the welcome message. Supports formatting, buttons and fillings. | Admins |
/resetwelcome | Go back to the default welcome message. | Admins |
/goodbye | Show or toggle the goodbye message. /goodbye on|off|noformat | Admins |
/setgoodbye | Set the goodbye message. | Admins |
/resetgoodbye | Go back to the default goodbye message. | Admins |
/cleanwelcome | Delete the previous welcome when someone new joins. /cleanwelcome on | Admins |
/greetings | List the fillings you can use in greetings, rules, notes and filters. | Admins |
Rules
One set of rules per chat, shown inline or by DM, reachable from a {rules} button anywhere you can put a message.
| Command | What it does | Who |
|---|---|---|
/rules | Show the chat's rules. | Anyone |
/setrules | Set the chat's rules. Supports formatting and buttons. | Admins |
/resetrules/clearrules | Delete the chat's rules. | Admins |
/privaterules | Send rules by DM instead of in the chat. /privaterules off | Admins |
/setrulesbutton/rulesbutton | Custom text for the {rules} button. /setrulesbutton Read the rules | Admins |
Notes
Saved messages recalled with /get or a #hashtag. Notes keep media, buttons and formatting, and can be admin-only, DM-only, or set to repeat on a timer.
| Command | What it does | Who |
|---|---|---|
/save/addnote | Save a note. /save rules Be nice or reply to a message. | Admins |
/get | Show a saved note. /get rules | Anyone |
/notes/saved | List the chat's notes. | Anyone |
/clear/rmnote · /delnote | Delete a note. /clear rules | Admins |
/clearall | Delete every note. Owner only. | Owner |
/privatenotes | Send every note by DM instead of in the chat. /privatenotes on | Admins |
Filters
Auto-replies triggered by a word, a prefix or an exact match. Add {command} and the filter registers as a real slash command in the chat's menu.
| Command | What it does | Who |
|---|---|---|
/filter/addfilter | Auto-reply to a word. /filter hello Hi there! or /filter (hi, hey) Hello! | Admins |
/stop/rmfilter · /stopfilter | Remove a filter. /stop hello | Admins |
/stopall | Remove every filter. Owner only. | Owner |
/filters | List the chat's filters. | Anyone |
Cleaning
Three separate sweepers: Telegram's own service notices, members' command messages, and the bot's own replies once they've been read.
| Command | What it does | Who |
|---|---|---|
/cleanservice | Delete Telegram's join/leave/pin notices. /cleanservice all | Admins |
/keepservice | Stop cleaning specific service messages. /keepservice pin | Admins |
/cleanservicetypes/servicetypes | List the service messages I can clean. | Admins |
/cleancommand | Delete command messages after running them. /cleancommand admin | Admins |
/keepcommand | Stop cleaning specific command messages. /keepcommand user | Admins |
/cleancommandtypes/commandtypes | List the command messages I can clean. | Admins |
/cleanmsg | Tidy away my own messages after a minute. /cleanmsg action notes | Admins |
/keepmsg | Stop cleaning specific messages of mine. /keepmsg error | Admins |
/cleanmsgtypes/msgtypes | List my own messages I can clean. | Admins |
Reports
Members can flag a message for the admins, and admins get it with the context attached.
| Command | What it does | Who |
|---|---|---|
/report | Reply to a message to bring it to the admins' attention. | Anyone |
/reports | Turn member reports on or off. /reports off | Admins |
Info
The IDs and history you need before deciding what to do about someone.
| Command | What it does | Who |
|---|---|---|
/idGroups and DMs | Show your ID, or a replied-to user's. | Anyone |
/infoGroups and DMs | Show what I know about a user. | Anyone |
Echo
Speak as the bot, with the same formatting and buttons available everywhere else.
| Command | What it does | Who |
|---|---|---|
/echo | Say something as me, with formatting and buttons. | Admins |
/say | Same as /echo, but leaves your command in place. | Admins |
/broadcastIn DMs | Send a message to every group I'm in. Bot owner only. | Anyone |
Log channels
Mirror what happens in the chat into a channel, split across six categories so the log stays readable.
| Command | What it does | Who |
|---|---|---|
/setlog | Point this chat's logs at a channel. /setlog @mychannel | Admins |
/unsetlog | Stop logging this chat. | Admins |
/logchannel | Show where this chat's logs go. | Admins |
/log | Turn log categories on. /log admin automated | Admins |
/nolog | Turn log categories off. /nolog settings | Admins |
/logcategories | List the log categories. | Admins |
Command disabling
Turn off any command you don't want used in a particular chat, optionally for admins too, and optionally deleting the attempt.
| Command | What it does | Who |
|---|---|---|
/disable | Turn a command off for members. /disable kickme | Admins |
/enable | Turn a disabled command back on. /enable kickme | Admins |
/disabled | List the commands currently disabled here. | Admins |
/disableable | List the commands that can be disabled. | Admins |
/disableadmin | Apply disabled commands to admins too. /disableadmin on | Admins |
/disabledel | Delete messages that use a disabled command. /disabledel on | Admins |
Federations
A shared ban list across every chat you run. Fed admins can ban from any member chat, you can subscribe to up to five allied federations, and ban lists export and import as CSV or JSON.
| Command | What it does | Who |
|---|---|---|
/newfedIn DMs | Create a federation. /newfed My Network | Anyone |
/delfedIn DMs | Delete a federation you own. /delfed <fed id> | Anyone |
/renamefedIn DMs | Rename a federation. /renamefed <fed id> New Name | Anyone |
/myfedsIn DMs | List the federations you own. | Anyone |
/joinfed | Add this chat to a federation. /joinfed <fed id> | Owner |
/leavefed | Remove this chat from its federation. | Owner |
/chatfed | Show which federation this chat is in. | Anyone |
/fedinfoGroups and DMs | Show a federation's details. /fedinfo <fed id> | Anyone |
/fban | Ban a user across the whole federation. /fban <user> <reason> | Anyone |
/unfban | Lift a federation ban. /unfban <user> | Anyone |
/fedadminsGroups and DMs | List a federation's admins. | Anyone |
/fedpromote | Make someone a federation admin. Fed owner only. | Anyone |
/feddemote | Remove someone's federation admin rights. Fed owner only. | Anyone |
/feddemotemeGroups and DMs | Step down as a federation admin. /feddemoteme <fed id> | Anyone |
/fedreason | Require a reason for every fed ban. /fedreason on | Anyone |
/fednotif | DM the fed owner on every fed action. /fednotif off | Anyone |
/setfedlog | Log fed actions to this chat. Run it in the chat you want the logs in. | Anyone |
/unsetfedlogGroups and DMs | Stop logging fed actions. /unsetfedlog <fed id> | Anyone |
/fbanlistGroups and DMs | Export the federation's bans. /fbanlist [fed id] csv|minicsv|json | Anyone |
/importfbansGroups and DMs | Import bans from a file. Reply to a CSV or JSON export. | Anyone |
/subfed | Also enforce another federation's bans. /subfed <fed id> | Anyone |
/unsubfed | Stop enforcing another federation's bans. /unsubfed <fed id> | Anyone |
/fedsubsGroups and DMs | List the federations yours is subscribed to. | Anyone |
Topics
Full forum support, including a dedicated topic that every moderation message gets sent to so the main feed stays clean.
| Command | What it does | Who |
|---|---|---|
/newtopic | Create a topic. /newtopic Announcements | Admins |
/renametopic | Rename the current topic. /renametopic New Name | Admins |
/closetopic | Close a topic so nobody can post in it. | Admins |
/reopentopic | Reopen a closed topic. | Admins |
/deletetopic | Delete a topic and every message in it. | Admins |
/actiontopic | Show which topic gets action messages. | Admins |
/setactiontopic | Send action messages to this topic. /setactiontopic off to undo. | Admins |
Import & export
Move a whole configuration — settings, notes, filters, blocklists, locks, welcomes and rules — between chats in one file.
| Command | What it does | Who |
|---|---|---|
/export | Download this chat's whole setup as a file. | Owner |
/import | Restore a backup. Reply to a file from /export. | Owner |
/reset | Wipe every setting, note, filter and lock. /reset confirm | Owner |
Connections
Run admin commands against a group from your DMs, so you're not configuring a chat in front of its members.
| Command | What it does | Who |
|---|---|---|
/connectGroups and DMs | Manage a group from this chat. /connect <chat ID or @username> | Anyone |
/reconnectIn DMs | Reconnect to the last chat you managed. | Anyone |
/disconnectIn DMs | Stop managing the connected chat. | Anyone |
/connectionIn DMs | Show which chat you're connected to. | Anyone |
Misc
Per-chat language, bot-to-bot behaviour, silent operation, and what the bot stores about you.
| Command | What it does | Who |
|---|---|---|
/setlang | Set the language the bot replies in. /setlang es | Admins |
/bot2bot | Let other bots trigger my commands. /bot2bot off|admin|all | Admins |
/bot2botskipreview | Skip moderation checks on bot messages. /bot2botskipreview on | Admins |
/silentactions | Delete admin commands and stay quiet. /silentactions on | Admins |
/privacyGroups and DMs | What this bot stores about you. | Anyone |
/helpGroups and DMs | List what I can do. /help locks for one area. | Anyone |
All 48 lock types
Lock them one at a time or several at once. Each lock can carry its own reason and punishment: /lock url ### No links here {tban 2w}. Nine of them — urls, buttons, invite links, inline bots, anonymous channels, commands, stickers, custom emoji and forwards — also take an allowlist.
allLocks everything in this list
albumMedia albums (groups of photos or documents)
anonchannelMessages sent by users as anonymous channels
audioMessages containing audio files
botUsers adding new bots to the group
botlinkMessages containing links to Telegram bots
buttonUsers and inline bots sending button links
cashtagMessages containing cashtags, e.g. $CASH
checklistNative Telegram checklists
cjkMessages containing Chinese, Japanese or Korean characters
commandBot commands starting with /
commentComments on the linked channel from non-members
contactShared contacts (vCards)
cyrillicMessages containing Cyrillic characters
documentShared files
emailEmail addresses
emojiAll messages containing emoji
emojicustomMessages containing custom Telegram emoji
emojigameEmoji games such as dice, football and darts
emojionlyMessages made up of nothing but emoji
externalreplyReplies to messages in other chats
forwardAny forwarded message
forwardbotForwards originally sent by a bot
forwardchannelForwards originally sent by a channel
forwardstoryForwarded Telegram stories
forwarduserForwards originally sent by a user
gameTelegram games
gifGIF images
guestbotBots replying in chats they aren't a member of
inlineInline bots (@pic, @vid, @gif and friends)
invitelinkMessages containing links to other Telegram groups
locationShared locations
outsidereactionReactions from users who aren't members
phonePhone numbers
photoImages
pollVoting polls
reactionMessage reactions
rtlMessages containing right-to-left text (Arabic, Hebrew…)
spoilerMessages containing spoiler formatting
stickerAll stickers
stickeranimatedAnimated stickers
stickerpremiumPremium stickers
textAll text messages
urlMessages containing URLs or links
videoVideos
videonoteTelegram video messages
voiceTelegram voice messages
zalgoText mangled with excessive combining characters
Formatting, fillings and punishments
Welcomes, goodbyes, rules, notes, filters and /echo all share the same dialect: *bold*, _italic_, __underline__, ~strike~, ||spoiler||, `code`, >quote, links, and buttons written as [Text](buttonurl://https://example.com) — add :same to put the next button on the same row.
Fillings
Replaced when the message is sent.
{first}The member's first name{last}Their last name{fullname}First and last name together{username}Their @username, or their name if they don't have one{mention}Their first name, as a link to their profile{id}Their numeric user ID{chatname}The chat's title{rules}A button linking to the chat's rules{preview}Allow the link preview Telegram would otherwise hide{nonotif}Send without a notification{protect}Stop the message being forwarded or saved{mediaspoiler}Hide the attached media behind a spoiler%%%Split variants onto their own lines and one is picked at random
Behaviour flags
Change how a note or filter works, not how it reads.
{private}Send this note by DM instead of in the chat{noprivate}Always send in the chat, even with /privatenotes on{admin}Only admins can trigger it{user}Only non-admins can trigger it{allow_bot}Other bots may trigger it{replytag}Address the replied-to user instead of the sender{repeat 6h}Post it again on a timer{command}Register the filter as a real slash command in the chat
Punishments
Attach to a lock, a blocklist entry, a flood limit or a warn limit.
{warn}Add a warning, escalating at your limit{kick}Remove the member; they can rejoin{ban}Ban permanently{tban 2w}Ban for a set time{mute}Mute indefinitely{tmute 1h}Mute for a set time{skick} {sban} {smute}The same, without announcing it in the chat{nothing}Delete the message and take it no further
Durations are written the way you’d say them: 30s, 10m, 2h, 3d, 1w.
Same commands. One fewer bot. Answers included.
Point us at your docs, run /import with your existing setup, and your group is moderated and answered by the same bot.