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!

Automate this task with 3 simple prompts

Copy and paste the following prompts into Botize's AI task editor

  1. 2

    Select the AI editing tool.

    AI Prompt Tool
  2. 3

    Start the automation as soon as a triggering event occurs

    Copy and paste this prompt into the AI editing tool.

    Set up the automation to start immediately when a new triggering event happens

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  3. 4

    Check for new text messages posted in a specific Telegram group

    Copy and paste this prompt into the AI editing tool.

    Add a step where the automation listens for any new text message sent to the chosen Telegram group

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  4. 5

    Delete any message that does not come from a set list of approved user IDs

    Copy and paste this prompt into the AI editing tool.

    Add a step to automatically delete the message if the sender's user ID is not on the specified list

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  5. 6

    Your automation is ready to use. Click the 'Save changes' button.

    Save changes

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