Documentation menu

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

ShortcodeDescriptionExample Output
[[ORIGIN_TEXT]]Message body after the cleaner and policy passesBreaking market report...
[[ORIGIN_NAME]]Title of the source channel or supergroupCrypto News Daily
[[ORIGIN_USERNAME]]Public @handle of the source channelcryptonewsdaily
[[ORIGIN_USERID]]Numeric Telegram id of the sender10842918
[[ORIGIN_POST_ID]]Original post id inside the source channel4921
[[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 titleCrypto News Daily
[[SENDER_CHAT]]Chat id the post was sent in-1001695513745
[[FORWARD_FROM_CHAT]]Original chat when the incoming post was itself a forwardReuters Telegram
[[FROM_USER]]Display name of the original authorJohn Doe

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 / Footer Configuration
Header Template:
📢 [[ORIGIN_NAME]] | پست شماره #[[ORIGIN_POST_ID]]

Footer Template:
───────────────────
🔗 منبع: [[ORIGIN_NAME_URL]]
⏰ زمان ارسال: [[ORIGIN_POST_DATE]]
Delivered Telegram Message
📢 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

  1. In your Telegram bot, open /settings and choose your task.
  2. Click 📝 هدر / فوتر (Header / Footer).
  3. Click 📌 تنظیم هدر and send your desired header template.
  4. Click 📌 تنظیم فوتر and send your desired footer template.
  5. Send a test post in your source channel to observe the live formatting.