Retrieve each new message from a Telegram chat, search for URLs from specific domains in the text, and if found, delete the message

Automatically clean up your Telegram chats by removing unwanted links.

  • Instantly when the trigger is activated
  • Instantly when receiving a message, image, or file (telegrambot → webhook_txtimgdoc)
  • Get URLs from text (btztextparser → get_urls)
  • Delete a message (telegrambot → delete_message)

Automate this task with 4 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

    First, create a main trigger so the automation starts instantly whenever a new event occurs.

    Copy and paste this prompt into the AI editing tool.

    Set up a trigger that activates the automation immediately whenever a new action needs to be processed.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  3. 4

    When a message, image, or file is received in any public Telegram channel, capture its details.

    Copy and paste this prompt into the AI editing tool.

    Add a step to listen for any new messages, images, or files posted in any public Telegram channel and collect their information.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  4. 5

    Extract all the URLs from the text of the received message and check if they link to Amazon domains.

    Copy and paste this prompt into the AI editing tool.

    Add a step to look through the text of the message, find any URLs, and identify if any of them belong to domains like amazon.com, amazon.es, or amazon.it.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  5. 6

    If any Amazon links are detected, delete that particular message from the Telegram channel.

    Copy and paste this prompt into the AI editing tool.

    Add a step to automatically delete the message from Telegram if at least one Amazon link was found in the previous step.

    AI Prompt Tool

    Click the 'Apply this task' button to confirm.

  6. 7

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

    Save changes

Effortless Spam-Free Chats 🌟

Imagine your Telegram chat as a peaceful neighborhood with zero spam chaos. This automation scans incoming messages for unwanted links (like pesky Amazon promos), and with a wave of our digital wand—gone!

Manual Botize
Scan and review messages 30 0 Minutes
Delete unwanted URLs 20 0 Minutes
Total 50 0 Minutes

Found us because messy chats were no longer tolerable? You're in the right place.


Running a Shopping Deals Channel

Maintain conversation quality without annoying Amazon affiliate links.

Stress-Free Chats

Automatically keeps your chat free from unwanted Amazon links.

Efficiency Boost

No need for manual cleanup or constant monitoring.

Peace of Mind

Enjoy conversations without interruptions.


Protecting a Study Group Chat

Focus on learning materials, not distracting promotional links.

🔍

⌾︎ if you're tired of sifting through spammy links.

⌾︎ if you run a public Telegram channel that needs moderation.

🤷‍♂️

✕ if you love manually managing every single message.

✕ if spam is your thing and you thrive on chaos.


✓ Specify more domains to watch out for.

✓ Choose between public and private channels.

✓ Set filters for specific types of messages containing links.




This automation allows for searching, monitoring, and detecting messages containing links with specific domains (in this example, links to Amazon)

Related automations