Telegram CoPilot icon

Telegram CoPilot

袙邪褕 锌械褉褋芯薪邪谢褜薪褘泄 Telegram CoPilot

Actions56

小芯芯斜褖械薪懈械 → 袨褌锌褉邪胁懈褌褜 泻褉褍卸芯褔械泻

AI-generated

Overview

This node operation sends a photo message to a specified chat in Telegram using the TelePilot API. It supports sending a local photo file with optional caption, reply to a specific message or thread, and setting a self-destruct timer for the photo message. This operation is useful for automating photo sharing in Telegram chats, such as sending images to groups, channels, or private chats with additional context or timed visibility.

Use Case Examples

  1. Automatically send a photo to a Telegram group chat with a caption describing the image.
  2. Send a photo as a reply to a specific message thread in a chat to maintain conversation context.
  3. Send a photo that self-destructs after a specified time for sensitive or temporary content.

Properties

Name Meaning
Chat ID The unique identifier of the chat where the photo message will be sent.
Message Photo The local file path to the photo that will be sent in the message.
袩芯写锌懈褋褜 泻 褎芯褌芯 Caption text to accompany the photo message.
袙褉械屑褟 褋邪屑芯褍薪懈褔褌芯卸械薪懈褟 (胁 褋械泻褍薪写邪褏) Self-destruct timer in seconds for the photo message. If set to 0, the photo will not self-destruct.
Reply to threadID If not 0, specifies the message thread ID to which the photo message will be sent as a reply.
Reply to messageId Identifier of the message to which this photo message is a reply.

Output

JSON

  • operation - The operation performed, e.g., sendMessagePhoto.
  • success - Indicates if the photo message was sent successfully.
  • error - Error message if the operation failed.
  • result - The result object returned from the TelePilot API after sending the photo message.
  • chat_id - The chat ID where the photo was sent.
  • file_path - The local file path of the photo sent.

Dependencies

  • TelePilot API credentials (apiId, apiHash, phoneNumber)

Troubleshooting

  • Ensure the TelePilot API credentials are correctly configured and the client is logged in before sending messages.
  • Verify the local file path to the photo exists and is accessible by the node.
  • If the operation fails with permission errors, check that the bot or user has the necessary rights in the target chat.
  • Self-destruct timer must be a non-negative number; setting it incorrectly may cause errors.

Links

Discussion