Telegram bot to delete messages posted in a specific group and topic that do not belong to a specific user

Say goodbye to unwanted messages. Only allow who YOU want to post in your group’s specific topic, without lifting a finger.

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

Moderating active Telegram groups can quickly become overwhelming, especially when you're trying to keep discussions focused within a specific topic and only want contributions from designated users. Manually monitoring each message to ensure it follows those criteria is tedious and error-prone, costing you countless hours and risking that unwanted messages dilute your group’s relevance or even cause conflicts. Skipping automation here not only drains your time but exposes your group to off-topic posts, reduced member satisfaction, and potential loss of authority as a community leader.

This Botize formula solves the headache by automatically scanning every new message in your chosen Telegram group and thread, instantly deleting any that aren’t from the specific user you authorize. Setup is simple: just add your Telegram bot to the group, specify the topic’s thread ID, and the user allowed to post. From there, this automation works 24/7, quietly and reliably enforcing your rules, so your group stays on topic, clutter is removed, and you retain full control. You’re still fully in charge of which user IDs, topics, and group chats the bot should watch, and you can adjust these settings any time to evolve with your community’s needs.

Ready to bring peace of mind and clean conversations to your Telegram group? Follow the step-by-step guide to activate this formula with Botize, or jump straight into the preconfigured template if you want to go live even faster. Take charge of your group’s focus and let automation work for you!

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

    Trigger the automation instantly whenever a new event occurs that needs to be checked.

    Copy and paste this prompt into the AI editing tool.

    Set up the automation to run immediately whenever it is triggered by an event. ⤾

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  3. 4

    Listen for any new text messages in a specific Telegram group and topic, so we can review them.

    Copy and paste this prompt into the AI editing tool.

    Configure the Telegram bot to monitor all new text messages posted in the chosen group and within a specific topic. ⤾

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  4. 5

    Delete any message in that group topic that was not sent by the specified user.

    Copy and paste this prompt into the AI editing tool.

    Add a step to automatically delete any message in the designated group topic unless it was posted by the user with the given user ID. ⤾

    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

Keep Your Telegram Group Clean—Automatically

Add your Telegram bot to your group, tell us the topic and the lucky user allowed to post. From that moment, any message in that topic not posted by that user vanishes automatically. No more constant monitoring, no more manual deleting. Just set it and forget it.

Manual Botize
Monitoring the group 24/7 1440 0 Minutes
Manually deleting every unwanted message 60-180 0 Minutes
Total 1500+ minutes per day 0 Minutes

Look no further. If you need a simple way to let just one user post in a Telegram group topic—and keep everything else deleted—this is EXACTLY what you’ve been searching for (without wrestling with complicated tools).


Exclusive Announcements

Your club or community uses a single topic for official announcements. Only the president posts; all other messages are deleted automatically, keeping everyone focused.

Zero Spam

No more random messages ruining your focused group discussions.

Ultimate Control

Only the right voice gets heard—your rules, your group, your peace of mind.

Effortless Moderation

Automate boring admin work and never stress about group clutter again.


Moderate Q&A Sessions

Host a Q&A session in a group topic. Questions not from the designated moderator get deleted, so the conversation stays on track and easy to follow.

🛡️

⌾︎ You run a Telegram group where only one person should make announcements.

⌾︎ You want a specific topic in your community to stay 100% focused and noise-free.

🙈

✕ You want everyone in your group to chat freely, with no restrictions.

✕ You dislike bots or automations in your messaging spaces.


✓ Change the group or topic being protected anytime—flexible for any team or event.

✓ Swap the ‘allowed user’ in seconds (maybe today it’s the boss, tomorrow the special guest).

✓ Combine with other Telegram automations for even tighter group control—think welcome messages, keyword alerts, etc.




This automation requires you to add your Telegram bot to the public or private group where messages will be reviewed, and to specify the ID of the topic it should monitor and the ID of the user you want to allow to post. The automation will delete every new message posted in that group topic that was not sent by the specified user.

Related automations