Telegram CoPilot icon

Telegram CoPilot

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

Actions56

效邪褌 → 袩芯谢褍褔懈褌褜 懈薪褎芯褉屑邪褑懈褞 芯 褋褋褘谢泻械 锌褉懈谐谢邪褕械薪懈褟 胁 褔邪褌

AI-generated

Overview

This node operation allows sending a photo message to a specified Telegram chat. It supports adding a caption, replying to a specific message, specifying a message thread, and setting a self-destruct timer for the photo message. This is useful for automating photo sharing in Telegram chats with additional message control features.

Use Case Examples

  1. Automatically send a photo with a caption to a Telegram group chat.
  2. Reply to a specific message in a chat with a photo.
  3. Send a photo that self-destructs after a set time in a private chat.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat where the photo message will be sent.
Local File Path The local file path of the photo to be sent.
Photo Caption Optional caption text to accompany the photo message.
Reply To Message ID The ID of the message to which this photo message is a reply.
Message Thread ID The ID of the message thread within the chat, if applicable.
Self Destruct Time Time in seconds after which the photo message will self-destruct.

Output

JSON

  • chat_id - The ID of the chat where the photo was sent.
  • reply_to_msg_id - The ID of the message this photo message is replying to, if any.
  • message_thread_id - The ID of the message thread within the chat, if any.
  • input_message_content
    • _ - The type of the input message content, here it is a photo message.
    • photo
      * _ - Details about the photo file sent, including the local file path.
    • caption
      * _ - Caption text formatted for the photo message.
    • self_destruct_type
      * _ - Self-destruct timer type if set for the photo message.
      * self_destruct_time - The duration in seconds for the self-destruct timer.

Dependencies

  • Telegram API credentials (API ID, API Hash, Phone Number)

Troubleshooting

  • Ensure the Telegram API credentials are correctly configured and the client is logged in before sending messages.
  • If the photo file path is incorrect or the file does not exist, the operation will fail.
  • Check permissions for sending messages in the target chat, especially if the bot or user account has restrictions.

Links

Discussion