How to build a Telegram group management bot
By the Botable team
A Telegram group management bot greets new members, states the rules, removes spam, and gives admins moderation commands. Describe your rules and what should happen when they are broken, and Botable builds the whole moderation flow.
What is a group manager bot?
A Telegram group management bot automates the jobs a human moderator does at 2am. Three functions cover most groups. A welcome flow greets each new member, shows the rules, and optionally gates participation behind a tap that confirms they were read — which alone removes a large share of drive-by spammers. A filter layer watches messages for the patterns you do not want: links from unknown domains, forwarded channel promos, repeated identical messages, or a word list you supply. And a command layer gives admins mute, warn, and ban without leaving the chat. Warnings need to be counted and stored, since "three strikes" is meaningless if nobody remembers strike one; on Botable that counter lives in the bot's own database. Getting the escalation ladder right matters more than the filters: silent deletion confuses people, so say what happened and why.
What commands does it have?
| Command | What it does |
|---|---|
/rules | Posts the group rules on request |
/warn @user | Records a warning and tells the user why |
/mute @user 1h | Temporarily restricts a member |
/ban @user | Removes a member from the group |
/stats | Member count, new joins, and message volume |
What do you need before you start?
- A Telegram bot token from @BotFather
- Admin rights for the bot in the group, with permission to restrict members
- Your rules, and the consequence for each breach
How do you build it?
What should happen when someone new joins?
Greet them by name, post the rules, and ask for one tap to confirm. That tap is the cheapest spam filter available, because automated joiners do not press buttons. Say whether an unconfirmed member should be restricted or just reminded.
How strict should the message filters be?
Start narrow. Link filtering plus a small word list catches most of it without false positives. Aggressive filters delete legitimate messages, and members lose trust in the group faster than they lose patience with spam.
How does a warning ladder work?
Warnings are counted per member and stored, so the third one can trigger a mute or a ban automatically. Tell the bot the thresholds. Also decide whether warnings expire — a permanent record can feel unfair in a long-running community.
Should moderation actions be announced?
Yes, briefly. A deleted message with no explanation reads as a bug; one line naming the rule prevents the same breach from repeating and shows the group that moderation is consistent rather than arbitrary.
A prompt you can use as-is
Paste this into Botable and adjust the details. It is specific on purpose — a vague description produces a vague bot.
Build a group management bot. Welcome each new member by first name, post the rules, and ask them to tap "I agree" before they can post. Delete messages containing links from domains outside a list I will give you, and messages matching a banned-word list, replying with one line naming the rule. /warn tracks warnings per member and auto-mutes for 24 hours on the third. /mute, /ban and /rules are admin-only. /stats shows joins and message volume this week.
Who is this bot for?
- Community owners who cannot moderate around the clock
- Paid or gated groups where join quality matters
- Any group large enough that spam arrives daily
What goes wrong with this kind of bot?
- The bot needs admin rights with restrict permission, or moderation commands silently fail
- Over-broad link filters block your own members sharing sources — allowlist first
- Deleting without explaining is the fastest way to make a group feel hostile
Questions about group manager bots
Can it handle more than one group?
Yes. One bot can administrate several groups, with rules and warning counters kept separately per chat, so a warning in one community does not follow someone into another.
Can it approve join requests?
If the group uses join requests, the bot can act on them — approving automatically, or after a question is answered. Describe the criterion you want applied.