How to automatically ban spammers
Automatically banning spammers in Telegram channels and groups requires a combination of built-in Telegram tools, third-party moderation bots, and well-configured admin settings. The most effective approach uses anti-spam bots like Combot, Rose Bot, or Shieldy alongside Telegram's native Aggressive anti-spam mode to catch and remove spammers before they disrupt your community.
Understanding Spam in Telegram Channels and Groups
Spam in Telegram takes many forms: unsolicited links, crypto scam promotions, fake giveaway announcements, mass-joining bots, and repetitive off-topic messages. Channels with open comments and public groups are the most vulnerable, especially once they cross the 500-member threshold — that is when spammers start actively targeting communities.
Telegram distinguishes between channels (one-way broadcast) and groups (interactive chat). Channels themselves rarely get spammed in the feed since only admins can post, but the linked discussion group attached to a channel is where spam problems explode. Protecting both requires different strategies.
Why Manual Moderation Is Not Enough
A group with 5,000+ members can receive dozens of spam messages per hour during peak times. Human moderators cannot realistically monitor chat 24/7. Even a dedicated team will miss messages during off-hours or when spam bursts happen simultaneously. Automated tools react in milliseconds, banning offenders before most members even see the spam.
Telegram's Built-In Anti-Spam Tools
Native Aggressive Anti-Spam Mode
Telegram introduced a built-in anti-spam system for groups with 200+ members. To enable it:
- Open your group settings
- Tap
Administrators - Find
Aggressive Anti-Spam - Toggle it on
This feature uses Telegram's machine learning to detect and automatically delete suspected spam messages. Deleted messages go to a Recent Actions log where admins can review false positives and mark them as non-spam to improve accuracy.
Slow Mode
Enabling Slow Mode limits how frequently members can send messages — options range from 30 seconds to 1 hour between messages. While not a direct anti-spam tool, it dramatically reduces the effectiveness of spam flooding:
- Go to group settings
- Tap
Permissions - Set
Slow Modeto your preferred interval
For active communities, 30 seconds to 1 minute strikes a good balance between conversation flow and spam prevention.
Restricting New Members
Telegram allows you to restrict what new members can do:
- Disable link sending for the first 24-48 hours
- Disable media sharing until a member has been verified
- Require admin approval to join (for smaller, high-value groups)
Configure these under Permissions in your group settings.
Top Anti-Spam Bots for Telegram
Combot (@comaborobot)
Combot is one of the most popular moderation solutions, trusted by groups with millions of members combined.
Key anti-spam features:
- CAS (Combot Anti-Spam) — a shared database of known spammers across thousands of groups
- Automatic banning of users flagged in the CAS database
- Configurable warning system before bans
- Flood detection and auto-mute
- New member verification via CAPTCHA
Setup:
1. Add @combot to your group
2. Grant it admin permissions (delete messages, ban users)
3. Visit the Combot web dashboard to configure rules
4. Enable CAS integration for instant known-spammer blocking
Rose Bot (@MissRose_bot)
Rose is a powerful, free moderation bot with deep anti-spam capabilities.
Key features:
- Blacklist specific words, phrases, or regex patterns
- Auto-ban users sending specific types of content (forwards from channels, Arabic/Chinese characters if irrelevant to your group)
- Welcome message with CAPTCHA verification
- Anti-flood: automatically mute or ban users sending too many messages in a short period
- Federation system: share ban lists across multiple groups
Quick setup:
1. Add @MissRose_bot to your group as admin
2. Send /antispam on to enable basic protection
3. Use /blacklist <word> to block specific terms
4. Configure /welcome to add CAPTCHA for new members
Shieldy (@shaborobot)
Shieldy focuses specifically on entry-point protection with CAPTCHA verification.
How it works:
1. A new user joins your group
2. Shieldy immediately restricts them from sending messages
3. The user must solve a CAPTCHA (button press, math problem, or custom question)
4. If they fail within the time limit, they are automatically kicked or banned
This alone eliminates 80-90% of automated spam bots, which cannot solve CAPTCHAs.
Group Help Bot (@GroupHelpBot)
A comprehensive management bot that includes:
- Keyword-based auto-moderation
- Link filtering with whitelist support
- Anti-flood protection
- Configurable punishment escalation (warn → mute → ban)
Building a Multi-Layer Defense Strategy
The most effective anti-spam setup combines multiple tools in layers:
Layer 1: Entry Gate
- Enable Shieldy or similar CAPTCHA bot
- Require new members to verify within 60-120 seconds
- This blocks most automated bot accounts
Layer 2: Content Filtering
- Use Rose Bot or Combot blacklists for known spam phrases
- Block messages containing suspicious patterns: excessive caps, repeated emojis, cryptocurrency wallet addresses
- Filter forwarded messages from unknown channels
Layer 3: Behavioral Detection
- Enable anti-flood rules (e.g., ban after 10 messages in 5 seconds)
- Set up CAS database checks via Combot
- Monitor for accounts with no profile photo, no username, or recently created accounts
Layer 4: Community Reporting
- Enable the
/reportcommand so members can flag spam - Configure bots to auto-ban after 3 reports from trusted members
- Assign trusted long-term members as moderators with limited permissions
Automating Bans for Channel Comments
If your Telegram channel uses a linked discussion group, spam in comments is a common issue. To protect it:
- Link your channel to a discussion group in
Channel Settings→Discussion - Add your chosen moderation bot to the discussion group (not the channel)
- Enable
Aggressive Anti-Spamin the discussion group - Consider enabling
Slow Mode(1 minute) in the comments group
Services like tgchannel.space that mirror your channel content on the web can also help by providing an alternative comment and engagement space that does not suffer from Telegram's spam problems.
Tips & Best Practices
- Start strict, then loosen: It is better to start with aggressive filtering and relax rules as needed than to try catching up with an existing spam problem.
- Use CAS (Combot Anti-Spam) database: This shared ban list catches spammers already flagged by other communities — enable it even if Combot is not your primary bot.
-
Audit your bot permissions monthly: Ensure moderation bots only have the permissions they need:
Delete Messages,Ban Users, andPin Messagesat most. - Keep a ban log: Most bots offer logging channels. Create a private channel where all mod actions are logged for accountability and to catch false positives.
- Combine bots carefully: Running two bots with overlapping CAPTCHA systems confuses new members. Pick one for CAPTCHA and another for content filtering.
- Set graduated punishments: First offense → warning, second → 24-hour mute, third → permanent ban. This reduces false-positive damage.
Common Mistakes
Mistake 1: Giving bots full admin rights
Why it is wrong: A compromised or malfunctioning bot with full admin rights could delete your entire message history or remove real members.
How to avoid: Only grant Delete Messages and Ban Users permissions. Never grant Add New Admins or Remain Anonymous.
Mistake 2: Relying solely on Telegram's built-in anti-spam
Why it is wrong: The native feature only works for groups with 200+ members and misses many sophisticated spam patterns.
How to avoid: Always supplement with at least one dedicated moderation bot, especially for groups under 1,000 members.
Mistake 3: Setting CAPTCHA timeout too short
Why it is wrong: A 10-second CAPTCHA timeout will kick legitimate users on slow connections or those who are multitasking.
How to avoid: Set timeouts between 60-120 seconds to balance security and user experience.
Mistake 4: Not whitelisting trusted domains
Why it is wrong: Blocking all links also blocks legitimate resources your community shares regularly.
How to avoid: Configure a domain whitelist in your moderation bot for trusted sites like your own website, documentation pages, or official resources.
Mistake 5: Ignoring the Recent Actions log
Why it is wrong: False positives happen. Legitimate members get banned, leave quietly, and never come back.
How to avoid: Check Recent Actions in group settings at least weekly. Unban false positives promptly and report them to improve bot accuracy.
Frequently Asked Questions
Can I automatically ban spammers in a private channel?
Private channels themselves do not receive spam since only admins post. However, you can and should protect the linked discussion group using the same bot-based methods described above, regardless of whether the channel is public or private.
Do anti-spam bots work in channels with less than 100 members?
Yes. Third-party bots like Rose and Shieldy work in groups of any size. Only Telegram's native Aggressive Anti-Spam requires 200+ members. For smaller communities, CAPTCHA verification alone is usually sufficient.
Will anti-spam bots slow down my group?
No. Modern moderation bots process messages in under 100 milliseconds. Members will not notice any delay. The bots run on external servers and do not affect Telegram's performance.
Can spammers bypass CAPTCHA bots?
Sophisticated spammers using human-operated accounts can solve CAPTCHAs, but they represent a tiny fraction of spam. CAPTCHA stops automated bots, while behavioral analysis (flood detection, content filtering) catches the rest.
How do I handle false positives from automated bans?
Set up a dedicated unban request channel or use a bot command like /unban @username. Review your bot's ban log regularly, and consider adding a warning step before permanent bans to reduce mistakes.