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 from the workflow. It also allows adding various interface options like inline keyboards, reply keyboards, and force reply prompts. This node is useful for automating photo sharing in Telegram chats, such as sending images in customer support, marketing campaigns, or notifications.
Use Case Examples
- Sending a photo from a URL to a Telegram chat.
- Uploading and sending a photo stored as binary data in the workflow.
- Adding an inline keyboard to the photo message for interactive buttons.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username of the target channel 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 when Binary File is true. |
| Photo | The photo to send when Binary File is false. Can be a file ID of an existing Telegram photo or an HTTP URL. |
| Reply Markup | Additional interface options to add to the message, such as inline keyboard, force reply, or custom reply keyboards. |
| Additional Fields | Various optional parameters such as caption, disable notification, parse mode, reply to message ID, message thread ID, and custom JSON fields for advanced Telegram API options. |
| Wait for Response | Whether to wait for a response from the user after sending the photo. |
| Timeout | Timeout in seconds to wait for a user response if 'Wait for Response' is true. |
Output
JSON
json- The JSON response from the Telegram API after sending the photo message.binarydata- The binary data of the downloaded file if the file is retrieved and downloaded.
Dependencies
- Telegram API key credential
Troubleshooting
- Ensure the Chat ID is correct and the bot has permission to send messages to the chat.
- If using binary data, ensure the binary property contains valid file data and a file name is set.
- Check that the file ID or HTTP URL provided for the photo is accessible and valid.
- If waiting for a response, ensure the timeout is set appropriately to avoid premature timeout errors.
Links
- Telegram Bot API - sendPhoto - Official Telegram API documentation for sending photo messages.