Telegram
Goal
Start a workflow by sending /refresh hello from your phone. Time: 15 minutes. Needs: a Telegram bot token from @BotFather, and your chat ID.
Steps
- On Triggers, choose Telegram. Enter the bot token and click Save bot settings. Termorq checks the token with
getMeand stores it in the keychain (accounttelegram-token-<id>). - Add your chat ID to the allowlist, and optionally a command such as
refresh(with or without/). - Save, confirm, and keep Termorq open.
What the message provides
| Path | Value for /refresh hello world |
|---|---|
trigger.text | /refresh hello world |
trigger.args | hello world |
trigger.chat_id, trigger.message_id, trigger.from_username | Message metadata |
Rules
- Termorq long-polls Telegram. The bot doesn’t reply.
- Messages from chats that aren’t on the allowlist are ignored.
/refreshand/refresh@my_botboth match the command. - When the bot first connects, it skips messages that were already waiting. The poll stops when you quit Termorq.
- The Triggers panel shows the poll status: Telegram API errors, allowlist or command mismatches, and the run ID that each matching message started.
Check your run
Send /refresh hello world. Triggers shows a run ID, and the args block publishes text: "hello world".
Exercise
Send a message from a chat that isn’t on the allowlist. What does the panel show, and does a run start?