Telegram CoPilot icon

Telegram CoPilot

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

Actions56

小芯芯斜褖械薪懈械 → 袨褌锌褉邪胁懈褌褜 褋芯芯斜褖械薪懈械 褋 胁懈写械芯

AI-generated

Overview

This node operation sends a video message to a specified Telegram chat. It allows users to provide the local path to the video file, an optional caption, and additional parameters such as replying to a specific message or thread, and setting a self-destruct timer for the message. This operation is useful for automating the sending of video content in Telegram chats, for example, sharing promotional videos, tutorials, or personal messages.

Use Case Examples

  1. Sending a video message to a customer support chat with a caption explaining the content.
  2. Automating the delivery of video updates to a project group chat.
  3. Sending a video message in response to a specific message thread in a Telegram channel.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat where the video message will be sent.
Message Video The local file path to the video file that will be sent as a message.
File Caption An optional caption text to accompany the video message.
袙褉械屑褟 褋邪屑芯褍薪懈褔褌芯卸械薪懈褟 (胁 褋械泻褍薪写邪褏) The self-destruct timer in seconds for the video message. If set greater than 0, the message will self-destruct after the specified time. A value of 0 means no self-destruct timer is set.
Reply to threadID If specified and not zero, the message will be sent as a reply within the given message thread.
Reply to messageId The identifier of the message to which this video message is a reply.

Output

JSON

  • chat_id - The ID of the chat where the video message was sent.
  • reply_to_msg_id - The ID of the message this video message is replying to, if any.
  • message_thread_id - The ID of the message thread where the video message was sent, if applicable.
  • input_message_content
    • _ - The type of the input message content, here it is a video message.
    • video
      * _ - The video file information, including the local file path.
    • caption
      * _ - The caption of the video message, if provided.
    • self_destruct_type
      * _ - The self-destruct timer type and duration, if set.

Dependencies

  • An API key credential for Telegram CoPilot API

Troubleshooting

  • Ensure the local video file path is correct and accessible by the node to avoid file not found errors.
  • If the self-destruct timer is set, verify that the Telegram chat supports self-destructing messages.
  • Check that the chat ID is valid and that the bot or user has permission to send messages to the chat.
  • Common errors include 'Client is not initialized' which means the Telegram client session is not active; re-login may be required.
  • Errors related to file size or format may occur if the video file exceeds Telegram's limits or is in an unsupported format.

Links

Discussion