Rules

Clean and Replace Telegram Messages Before They Are Forwarded

Strip links, mentions, hashtags and extra lines, or replace text, so forwarded posts match your style. Cleanup rules run on each message before it is sent.

Common cleanup rules

  • Remove or replace links: drop URLs, or swap them for your own link or a note.
  • Remove or replace mentions and hashtags: stop forwarding another channel's handles.
  • Remove or replace emails and phone numbers: keep contact details out of the destination.
  • Remove emojis: for a plain-text feed.
  • Replace text: change a word or phrase. Pattern-based replacement is available where your plan includes regex.
  • Remove lines: drop the first or last line, drop lines containing a phrase, or keep only the first few lines.
  • Tidy spacing: trim spaces, collapse extra whitespace and remove empty lines.
  • Change case: uppercase, lowercase or title case.

Add a prefix, suffix or timestamp

Add a line before or after every forwarded post, such as a credit or a timestamp. Use a short line so the original message stays easy to read.

Example: swap a source link

Use a replace-URL rule to change links in every post to your own link, or remove them. Test with a post that contains a link before you turn the job on for a busy channel.

Be careful with changes

Cleanup only changes the copy sent to the destination. The source channel is not edited. Before you republish content, check that you have permission to share it, and that the edited version does not mislead readers.

Set it up

  1. Open the job that forwards the channel.
  2. Add a cleanup rule, such as remove links.
  3. Add more rules if needed, then check the order they run in your rule list.
  4. Send a test post with links, mentions and emojis, and check the result at the destination.

Frequently asked questions

Can I remove a link but keep the text?

Yes. Use the remove-links rule. It removes the link and leaves the rest of the post.

Can cleanup rules be combined?

Yes. Add several rules to a job, then check the result with a test post.

Do cleanup rules change the original message?

No. They change only the copy that is sent to the destination.

Ready to try it? Create an account, open the Telegram bot or see current plans for limits.
Responsible use: only forward content you are allowed to access and share, follow Telegram's rules, and respect copyright and privacy. TG Auto Forwarder is independent software, not affiliated with Telegram.