Documentation menu

Playground

Cleaner & Template Playground

Paste a real post and watch the cleaner, header, footer and shortcodes transform it in your browser, with nothing leaving the page.

Verified against the checkout built for v2.2.4 · updated 20 Oct 2026

This interactive sandbox runs entirely in your browser using pure client-side JavaScript. It simulates the exact transformation logic used in AutoTelegramForward's Python Core pipeline: URL and mention stripping, hashtag cleaning, phone number scrubbing, and shortcode interpolation.

⚡ Interactive Message Transformation Sandbox

Test AutoTelegramForward's cleaner engine, header/footer templates, and shortcode interpolation in real time.

2. Content Cleaner Options
[[ORIGIN_NAME]]
[[ORIGIN_NAME_URL]]
Transformed Output Preview
Telegram Message Preview0 chars
💡 Validated Shortcodes: [[ORIGIN_NAME]], [[ORIGIN_TEXT]], [[ORIGIN_POST_ID]], [[ORIGIN_USERNAME]], [[ORIGIN_POST_DATE]], [[ORIGIN_NAME_URL]], [[FORWARD_FROM_CHAT]].

How It Works in Production

In production, AutoTelegramForward executes this transformation pipeline inside core/domain/services.py:

  1. Normalization: The raw Pyrogram message caption or text is normalized to standard Python strings, eliminating UTF-16 surrogates.
  2. Cleaning: Cleaner options strip URLs, mentions, hashtags, emojis, or custom words according to your per-rule settings.
  3. Shortcode Interpolation: Header and footer templates are populated with verified variables ([[ORIGIN_NAME]], [[ORIGIN_POST_ID]], [[ORIGIN_POST_DATE]], etc.).
  4. Dispatch: The assembled message is enqueued for delivery to destination chats via MTProto.