Overview
This node sends a text message via Telegram using the MTPROTO API. It is useful for automating message sending to specific Telegram chats, such as users, groups, channels, or usernames. Practical examples include sending notifications, alerts, or updates directly to Telegram chats from an automated workflow.
Use Case Examples
- Send a notification message to a user when a specific event occurs.
- Send updates to a Telegram group about project status.
- Send alerts to a Telegram channel for monitoring purposes.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The chat ID (user ID, group ID, channel ID, or username) to send the message to. |
| Message | The text of the message to send. |
Output
JSON
success- Indicates if the message was sent successfully (true or false).chatId- The chat ID to which the message was sent.message- The text message that was sent.result- The result object returned by the Telegram API when the message is sent successfully.error- Error message if sending the message failed.
Dependencies
- Telegram MTPROTO API credentials required for authentication.
Troubleshooting
- Common issues include failure to connect to Telegram due to invalid or expired credentials, resulting in connection errors.
- Errors sending messages may occur if the chat ID is invalid or the bot/user does not have permission to send messages to the specified chat.
- Error messages from the Telegram API are captured and returned in the output for troubleshooting.