Actions34
- Chat Actions
- Contact Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- User Actions
Message → Send Message with Photo
AI-generatedOverview
This node operation sends a photo message to a specified Telegram chat. It allows users to provide the chat ID, the local file path of the photo to be sent, an optional caption for the photo, and an optional message ID to reply to. This is useful for automating the sending of images in Telegram chats, such as sharing event photos, product images, or visual updates directly from workflows.
Use Case Examples
- Sending a product image with a caption to a customer support chat.
- Sharing a photo from a local directory to a group chat with a reply to a specific message.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the Telegram chat where the photo will be sent. |
| Message Photo | The local file path to the photo that will be sent in the message. |
| Photo Caption | An optional caption text to accompany the photo in the message. |
| Reply to messageId | Optional message ID to which this photo message will be a reply. |
Output
JSON
success- Indicates if the photo message was sent successfully.error- Error message if sending the photo failed.result- The Telegram API response object representing the sent photo message.
Dependencies
- Requires Telegram API credentials (API ID, API Hash, and phone number) for authentication.
Troubleshooting
- Ensure the Telegram session is logged in; otherwise, the node will throw a login error.
- Verify the local file path exists and is accessible; missing files will cause errors.
- Check that the chat ID is valid and the bot/user has permission to send messages to that chat.
- Common Telegram API errors include user restrictions on receiving media, expired file references, invalid file IDs, and chat write permissions. The node provides specific error messages for these cases.
Links
- TelePilot Login Guide - Instructions for logging in and managing Telegram sessions for this node.