Telegram bot to delete messages posted in a chat that do not come from specific users

Automatically clean up your Telegram groups with ease and precision.

  • Instantly when the trigger is activated
  • Instantly when receiving a text message (telegrambot → webhook)
  • Delete a message (telegrambot → delete_message)

Managing a busy Telegram group can be overwhelming when unwanted messages clutter your chat, especially if you need to maintain focus, security, or compliance. Manually deleting posts that aren't from trusted users is tedious, time-consuming, and opens the door for mistakes or missed messages—impacting your group's reputation and wasting valuable time. Without automation, these stray messages disrupt conversations, confuse your members, and damage the quality and visibility of your channel.

This Botize formula solves that headache by automatically monitoring your Telegram group, identifying every new message, and instantly deleting anything not sent by your approved users. You decide exactly which users are ‘safe’—specify their IDs in your custom filter—and every message from outsiders vanishes without you lifting a finger. This way, your chat stays clean and focused, you project a professional image, and you save countless hours of manual moderation.

Get started by following the step-by-step guide to set up this formula in minutes—or simply activate it as is for immediate results. And don't forget, you can fine-tune the user list or adapt the frequency to your group's dynamics. Take control of your Telegram group today—Botize makes it seamless!

Start using this automation

It's ready to go. Choose how to set it up in your account.

Open it in the Botize editor

Load it into your account and customize it in the visual panel, with everything in view.

Open it in Claude or ChatGPT

Copy this and paste it into ChatGPT or Claude (with the free Botize connector): it'll load the automation, tailor it with you and save it to your account.

Not connected yet? Claude guide · ChatGPT guide


Say Goodbye to Unwanted Messages

Our bot jumps into action anytime someone posts a message. If they're not on your approved list, presto! The message vanishes like magic.

Manual Botize
Manually scan each message for authorization 60 0 Minutes
Delete unapproved messages 30 0 Minutes
Total 90 0 Minutes

Looking to keep your Telegram group neat and tidy? You're in the right place!


Example 1: Business Group

Maintain professionalism by ensuring only authorized members can post, keeping the conversation on topic.

Effortless Control

Gain full control without lifting a finger.

Seamlessly Invisible

No disruptions, just smooth automation.

Time Saver

Focus on what matters while we handle the mess.


Example 2: Study Group

Filter messages to ensure a focused study environment, allowing only key contributors to interact.

🤖

⌾︎ Your group needs a bouncer that works 24/7.

⌾︎ You're tired of weeding out irrelevant chat clutter.

🛑

✕ Every message in your chat is a precious gem.

✕ You enjoy personally moderating all messages.


✓ Update the list of approved users anytime.

✓ Change the Telegram group connection easily.

✓ Set specific hours for message monitoring.




Related automations

Other ready-to-use automations you may find useful.