Send Message (send_message)
The send_message function sends a text message to the user in the chat.
Basic Usage
Add a send_message block to a step and specify the message text:
Hello! How are you?
Variables in Text
Use template variables for dynamic content:
| Variable | Description |
|---|---|
{=message=} |
User's message text |
{=tgData.from.id=} |
User's Telegram ID |
{=tgData.from.first_name=} |
User's first name |
Example:
Hello, {=tgData.from.first_name=}! You wrote: {=message=}
Buttons
Add buttons using special syntax in the text:
Choose an action:
{buttons:[[Button 1] [Button 2]][[Button 3]]}
[[...]]— a row of buttons[...]— an individual button in a row
Limitations
- Maximum message length — 4096 characters (Telegram API limit)
- Buttons do not support nested variables