Template Variables
1 min read
14 views
Dec 24, 2025
Template Variables
Use dynamic variables to personalize your messages.
Available Variables
Bot Variables
{{ bot.username }} - Bot's username
{{ bot.first_name }} - Bot's display name
User Variables
{{ user.id }} - User's Chat ID
{{ user.name }} - User's display name
{{ user.username }} - User's Telegram username
{{ user.first_name }} - User's first name
{{ user.last_name }} - User's last name
Message Variables
{{ message.text }} - Original message text
{{ message.id }} - Message ID
Snippets
{{ s.snippet_key }} - Value from your snippets
Spintax
Create random variations:
{Hello|Hi|Hey} {{ user.name }}!
{Thank you|Thanks} for {joining|subscribing}!
Random Sentences
Generate random content using special markers. Check the documentation for syntax.
Was this article helpful? Thank you for your feedback!