Telegram Group Guardian

Keep your group clean, safe, and spam-free — automatically.

CleanifyAI detects and deletes link spam, bot promotions, and unwanted mentions. It can also temporarily restrict offenders to stop repeat spam.

Make the bot Admin with Delete messages and Restrict members permissions.

# CleanifyAI — first message in your group 🛡️ Guardian active. I remove links and @other bots, then mute offenders.- Allows channel auto-forwards & anonymous admin posts - Deletes forwarded posts from other groups - Flexible mute time (e.g., 10s, 30m, 2h)

What CleanifyAI does

Smart, quiet protection tailored for busy communities.

🚫 Delete link spam

Auto-removes messages containing suspicious links, invite links, and promo URLs.

🤖 Block bot promotions

Detects @…bot mentions and mass-tag promotions; keeps attention on real members.

🔒 Restrict offenders

Optionally restricts spammers for a short time window so they can’t post again immediately.

🛡 Respect official posts

Linked channel posts and anonymous admin messages pass through untouched.

🧭 Forward filter

Deletes any message forwarded from other groups/supergroups that aren’t your own.

⚙️ Zero dependencies

Lightweight PHP webhook with no external libraries. Easy to host and maintain.

How it works

Add CleanifyAI

Click Add to Telegram Group and choose your group.

Grant permissions

Make it Admin with Delete messages and Restrict members.

Relax

CleanifyAI silently removes spam and keeps the conversation clean.

Required permissions

Grant these for best results:

✔ Delete messages
✔ Restrict members
✔ View messages
✔ Pin messages (optional)

Commands

Minimal commands — runs automatically after you add it as admin.

/start — Show a quick intro & helpful buttons.
/status — Check if protection is active.
/help — Short guide & links.
/settings — (optional) Configure mute duration via env e.g. MUTE_DURATION=30m.

FAQ

Does it store member data?

No personal data is stored. The bot only inspects incoming messages for spam patterns and acts accordingly.

Will it mute my channel posts?

No. Linked channel posts and anonymous admin messages are ignored by design.

Can I change the mute time?

Yes. Set MUTE_DURATION to values like 10s, 30m, or 2h on your server.

What links are blocked?

Common spam sources such as t.me invites, chat.whatsapp.com, discord.gg, and suspicious URLs.

Ready to keep your group clean?

Add CleanifyAI now — it takes less than a minute.