Templates Β· How it works

What templates are #

A template is a pre-built bot message: text, attachment and buttons. Set it up once and reuse it wherever you need.

Templates are used by Triggers, Scheduled messages, Night mode, welcomes and the captcha. Edit the template and it changes everywhere it is used.

Text and formatting #

Three ways to set the text. Like in Telegram β€” type it in your client with the usual bold, italic and links, and the bot picks the formatting up as is.

Markdown and HTML β€” when it is easier to describe the formatting with markup or to carry it over from somewhere else.

Before saving, the bot validates the markup and shows a preview, so a broken tag never reaches the chat.

Attachment #

A template can carry a photo, video, document, animation, voice note, video note or sticker β€” the text then goes as the attachment caption.

Stickers and video notes have no caption: in such a template the text is sent as a separate message right after.

Buttons #

Buttons are added in rows; each has a label, a colour and its own action. A single button can carry several actions at once β€” they run in order.

Available: external link, jump to another template, send a message to the chat or to DM, ban, mute, unmute, delete the message, approve and decline a join request.

A typical combination is Β«I am humanΒ»: unmute + delete the message with the button + send the welcome.

Full list β€” Templates Β· Button actions β†’

Placeholders #

The text can contain placeholders filled in at send time: %MENTION% β€” a mention of the user, %NAME% β€” their name, %USERNAME% β€” the @username, %USERID% β€” the numeric id, %NAMEMENTION% β€” the name as a link, %CHATURL% β€” a link to the chat.

That is how one welcome message addresses everyone by name.

More β€” Templates Β· Placeholders β†’

See also β€” Custom phrases β†’

Sending options #

Auto-delete timer β€” the message removes itself after the set time. Needed for rules, captcha and anything that should not pile up in the chat.

Replace the previous copy β€” on a repeat send the previous one is deleted, so the chat always holds a single current copy.

You can also set replying to the triggering message, pinning, silent sending and link previews.

Where to set it up #

Bot settings β†’ πŸ›  Tools β†’ πŸ“ Message templates. There is a preview there too: send the template to your own DM and see how it actually looks.

Templates belong to whoever created them and are available in every chat where that person is an admin.

Markdown Β· Русский Β· 2026-11-27