Documentation menu
Getting started
New in v2.0
Feature deep dives
Reference
Headers & Footers
Header & Footer Shortcodes Reference
Customize forwarded Telegram messages with dynamic headers and footers using 12 verified shortcodes, markdown links, and post attribution.
Verified against the checkout built for v2.2.4 · updated 20 Oct 2026
Overview
AutoTelegramForward enables channel managers to brand forwarded posts with custom headers (prepended before the message body) and footers (appended after the message body). Dynamic values from the incoming message—such as original channel title, post ID, or post timestamp—are interpolated into templates at runtime.
Supported Shortcode Syntax
Both double bracket [[VARIABLE]] and standard bracket {VARIABLE} notations are supported and case-insensitive.
Verified Shortcodes Reference
| Shortcode | Description | Example Output |
|---|---|---|
| [[ORIGIN_TEXT]] | Message body after the cleaner and policy passes | Breaking market report... |
| [[ORIGIN_NAME]] | Title of the source channel or supergroup | Crypto News Daily |
| [[ORIGIN_USERNAME]] | Public @handle of the source channel | cryptonewsdaily |
| [[ORIGIN_USERID]] | Numeric Telegram id of the sender | 10842918 |
| [[ORIGIN_POST_ID]] | Original post id inside the source channel | 4921 |
| [[ORIGIN_CHAT_ID]] | Numeric id of the source channel | -1001695513745 |
| [[ORIGIN_POST_DATE]] | Original publication timestamp (UTC) | 2026-10-16 14:00 UTC |
| [[ORIGIN_NAME_URL]] | Markdown hyperlink back to the original post | [Crypto News](https://t.me/cryptonewsdaily/4921) |
| [[SOURCE_NAME]] | Alias for the source channel title | Crypto News Daily |
| [[SENDER_CHAT]] | Chat id the post was sent in | -1001695513745 |
| [[FORWARD_FROM_CHAT]] | Original chat when the incoming post was itself a forward | Reuters Telegram |
| [[FROM_USER]] | Display name of the original author | John Doe |
Generating Clickable Channel Hyperlinks
When forwarding from public channels, using [[ORIGIN_NAME_URL]] automatically renders the channel title as a Telegram Markdown link formatted as:
[{chat.title}](https://t.me/{chat.username}/{message.id})If the source chat has no public username (private channel or group), it falls back to the clean chat title without breaking the message link.
Template Configuration Example
Header Template: 📢 [[ORIGIN_NAME]] | پست شماره #[[ORIGIN_POST_ID]] Footer Template: ─────────────────── 🔗 منبع: [[ORIGIN_NAME_URL]] ⏰ زمان ارسال: [[ORIGIN_POST_DATE]]
📢 Tech Crunch | پست شماره #4921 Today OpenAI announced new frontier model capabilities across developer APIs. ─────────────────── 🔗 منبع: Tech Crunch ⏰ زمان ارسال: 2026-10-13 10:45:00 UTC
Step-by-Step Configuration
- In your Telegram bot, open
/settingsand choose your task. - Click 📝 هدر / فوتر (Header / Footer).
- Click 📌 تنظیم هدر and send your desired header template.
- Click 📌 تنظیم فوتر and send your desired footer template.
- Send a test post in your source channel to observe the live formatting.