Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node operation sends a message via Telegram and waits for a user response. It is useful in scenarios where interaction with users is required, such as approval workflows, surveys, or any case where a bot needs to send a message and then process the user's reply. For example, a bot can send a question with button options and wait for the user to select one before proceeding.
Use Case Examples
- Sending a message with approval buttons and waiting for the user's selection.
- Sending a prompt message and waiting for a reply to continue a workflow.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username of the target channel where the message will be sent. |
| Message | The text content of the message to send to the user. |
| Response Type | Defines how the user should respond to the message, currently supports 'Button' type responses. |
| Approval Options | Options for approval buttons that the user can select as a response. Each option has a label and a value. |
| Options | Additional options such as timeout duration to wait for the user's response. |
Output
JSON
json- The JSON response from Telegram API after sending the message and receiving the user's response.
Dependencies
- Telegram API with an API key credential
Troubleshooting
- Ensure the Chat ID is correct and the bot has permission to send messages to the chat.
- Timeout errors may occur if the user does not respond within the specified timeout period.
- File name must be provided when sending binary data, otherwise the operation will fail.
Links
- Telegram Bot API - sendMessage - Official Telegram API documentation for sending messages.