Node reference
Message subscribe
Listen for incoming text messages
Message subscribe keeps listening for incoming text messages on your Telegram connection. Each accepted message starts the connected downstream path.
Try it step by step#
- Create a Telegram connection and select it in the node.
- Connect Start → Message subscribe → Variable. Run the workflow, then send a text message to the bot.
- Inspect the received output and use its chat and message fields to build a reply with Send message.
What to expect#
The listener emits message data when a matching text message arrives. Starting the listener alone does not produce a sample message.
Things to check#
- Keep the selected runtime running while listening. Stop the workflow when you finish the exercise.
- Use a chat filter when only one conversation should trigger the path. An empty listening period is not proof of a failed run.
Keep learning#
Parameters#
| Setting | Default | What it does |
|---|---|---|
| Telegram bot | (empty) | Uses a named Telegram connection. The bot token is never stored in the workflow. |
| Only this chat | (empty) | Leave empty to receive text messages from every chat visible to this bot. |
| On failure | stop | Choose whether a failed execution stops the workflow or only ends this path. |
| Retry attempts | 0 | How many additional attempts to make after the first failure. |
Telegram bot: Select your own telegram connection. See connection setup.
Only this chat: Available under More options.
On failure: Choices: Stop workflow (stop), Continue (continue). Available under More options.
Retry attempts: Available under More options. Limits: minimum 0.
Inputs#
| Port | Value |
|---|---|
in | any |
Outputs#
| Port | Value | Description |
|---|---|---|
out | object | The next incoming Telegram text message and its metadata. |
out fields#
| Field | Type |
|---|---|
updateId | number |
messageId | number |
date | string |
text | string |
chat.id | string |
chat.type | string |
chat.title | string |
chat.username | string |
from.id | string |
from.isBot | boolean |
from.username | string |
from.firstName | string |
from.lastName | string |
from.languageCode | string |