Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node sends a photo message to a specified Telegram chat. It supports sending photos either by referencing an existing file on Telegram servers, providing an HTTP URL, or uploading a binary file directly from the workflow. It allows customization of the message with captions, reply markup (such as inline keyboards or custom reply keyboards), and other Telegram-specific options. This node is useful for automating photo sharing in Telegram chats, such as sending images in response to events or user interactions.
Use Case Examples
- Automatically send a promotional photo to a Telegram channel when a new product is added to an inventory system.
- Send a photo with an inline keyboard to a Telegram group chat for interactive user engagement.
- Upload and send a photo stored as binary data in the workflow to a Telegram user or group.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username where the photo will be sent. |
| Binary File | Indicates whether the photo to send should be taken from a binary field in the workflow. |
| Input Binary Field | The name of the binary property containing the photo data to upload, used if Binary File is true. |
| Photo | The photo to send, specified as a file ID on Telegram servers or an HTTP URL, used if Binary File is false. |
| Reply Markup | Additional interface options for the message, such as inline keyboard or custom reply keyboard. |
| Additional Fields | Optional parameters to customize the photo message, including caption, disable notification, parse mode, reply to message ID, message thread ID, and custom JSON fields for advanced Telegram API options. |
Output
JSON
json- The JSON response from the Telegram API after sending the photo message, containing details about the sent message.
Dependencies
- Telegram API with an API key credential for authentication.
Troubleshooting
- Ensure the Chat ID is correct and the bot has permission to send messages to the chat.
- If sending a binary file, make sure the binary property contains valid file data and a file name is provided either in the binary metadata or the node's File Name parameter.
- When using file IDs or URLs, verify that the file exists and is accessible by Telegram.
- Check for proper formatting of additional fields and reply markup JSON to avoid API errors.
Links
- Telegram Bot API - sendPhoto - Official Telegram API documentation for sending photo messages.