How commands work
Learn how to type commands, reply to people, use usernames and IDs, and write times like 30m or 2h.
A command is a short message that tells the bot what to do. This page explains the few simple rules you need.
Commands start with / or !
Both of these do the same thing:
/help!help
Commands are not case sensitive, but small letters are the easiest.
How to read the usage lines
In this guide you will see lines like /ban <reply | id | @username> [reason]. Here is how to read them:
| What you see | What it means |
|---|---|
Words in angle brackets, like <type> | You must fill this in. Do not type the brackets. |
Words in square brackets, like [reason] | Optional. You can skip it. Do not type the brackets. |
The word reply | Reply to a person's message with the command. |
id | The number that identifies a user or chat. |
@username | The person's Telegram username. |
Choosing who a command is about
Many commands act on a person, such as /warn or /mute. There are three ways to say who:
1. Reply to their message (easiest)
Long-press (or right-click) the person's message, choose Reply, and type the command.
User Rahul has 1/3 warnings; be careful!
Reason: Please do not post links
Everything you type after the command is the reason.
2. Use their @username
3. Use their numeric ID
Every Telegram user has an ID number. Example: /ban 123456789 spam. To find an ID, see Everyday commands (/id).
Writing time: 30m, 2h, 1d
Some commands need a duration, such as /tmute or /setwarntime. Write a number followed by one letter:
| Letter | Meaning | Example |
|---|---|---|
s | seconds | 45s |
m | minutes | 30m |
h | hours | 2h |
d | days | 7d |
w | weeks | 2w |
You can combine them, like 1h30m. The shortest time is 30 seconds and the longest is 366 days.
Slow down
To prevent spam, many commands have a short cooldown. If you use a command again too quickly, the bot says "Slow down, try again in a few seconds". Just wait and try again.
Commands that only work in groups or in private
- Most moderation commands work only in groups. If you use them in a private chat, the bot tells you.
- Some commands, like
/newfedand/myfeds, work only in a private chat with the bot. - Some settings commands can be used from a private chat after you connect your group. See Manage from private chat.