How to make a Telegram group management bot (captcha, anti-spam, warnings)
· 6 min read
A growing Telegram group attracts spam bots, scam links and arguments faster than admins can keep up. A group management bot welcomes real people, stops bots at the door, removes spam automatically and gives admins quick moderation commands.
What it can do
Welcome each new member by name and delete Telegram’s "joined" and "left" notices. Mute newcomers until they tap "I’m not a robot", and remove anyone who does not tap in time.
Delete links, forwards and messages with banned words or phrases. Group admins, your bot admins and posts sent as the group or its channel are never filtered.
Count warnings and mute, remove or ban members who reach the limit. Admins can reply to any message with /warn, /mute 2h, /unmute, /kick, /ban, /unban or /unwarn.
Set it up
- Create a bot and paste your BotFather token.
- In Deploy, turn on group chats and publish.
- Add the bot to your group as an admin with the "Delete messages" and "Ban users" rights.
- In the Group panel tick Manage groups and write a welcome message, for example
Welcome {{user.first_name}}! Please read the pinned rules. - Tick Captcha and choose how many minutes newcomers have to tap the button.
- Tick Delete links and Delete forwards, and add banned words, one per line.
- Set Warnings before action, for example 3, choose mute, kick or ban, then tick Admin commands and publish again.
Moderating from Telegram
After publishing, group admins see the moderation commands in Telegram’s "/" menu. Reply to a member’s message with a command: /mute 30m, /mute 2h and /mute 7d set a duration, and /warn spam records a reason.
Only real group admins can use the commands, and no one can warn, mute or remove another admin.
One bot for the group and private chats
The same bot can still run your flows in private chats: FAQs, sign-ups, payments or live chat with your team. Group moderation runs on its own, without any flow.
Frequently asked questions
Is group management free?
Yes. Welcome, captcha, filters, warnings and admin commands are on every plan, including Free.
Why does my bot not delete messages?
Make sure group chats are turned on in Deploy, the bot is a group admin with "Delete messages" and "Ban users" rights, and you published after changing the Group panel.
Does the free-plan branding appear in my group?
No. The "Made with TheBotCreator" line only appears in private chats, never in groups.