Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node allows sending a video message to a specified Telegram chat. It supports providing the local path to the video file, optional caption, video duration, dimensions, streaming support, and an optional thumbnail image. It is useful for automating the sending of video content in Telegram chats, such as sharing promotional videos, tutorials, or personal messages with multimedia content.

Use Case Examples

  1. Sending a video message to a customer support chat with a caption describing the video content.
  2. Automating the sharing of recorded event highlights to a Telegram group.
  3. Sending a video tutorial to a user with a thumbnail preview and caption.

Properties

Name Meaning
Chat ID The identifier of the Telegram chat where the video message will be sent.
Message Video Local file path to the video file to be sent.
File Caption Optional caption text to accompany the video message.
Reply to threadID If specified and not zero, the message will be sent as a reply in the given message thread.
Duration Of The Video, In Seconds Duration of the video in seconds.
Video Width Width of the video in pixels.
Video Height Height of the video in pixels.
On, If The Video Is Supposed To Be Streamed Boolean flag indicating if the video supports streaming.
Thumbnail Width Width of the thumbnail image in pixels.
Thumbnail Height Height of the thumbnail image in pixels.
JPEG Thumnail Of The Video (Local File Path) Local file path to the JPEG thumbnail image for the video.
Reply to messageId Identifier of the message to which this video message is a reply.

Output

JSON

  • _ - Indicates the type of the sent message, e.g., 'sendMessage' response object.
  • chat_id - The chat identifier where the message was sent.
  • reply_to_msg_id - The message ID this message is replying to, if any.
  • message_thread_id - The thread ID within the chat, if the message is part of a thread.
  • input_message_content
    • _ - Type of input message content, here 'inputMessageVideo'.
    • video
      * _ - Indicates the video file is a local file input.
    • duration - Duration of the video in seconds.
    • width - Width of the video.
    • height - Height of the video.
    • supports_streaming - Boolean indicating if the video supports streaming.
    • thumbnail
      * _ - Indicates the thumbnail is a local file input.
      * width - Width of the thumbnail image.
      * height - Height of the thumbnail image.
    • caption
      * _ - Caption type, here 'formattedText'.
      * text - Caption text for the video message.

Dependencies

  • An API key credential for Telegram API authentication is required.

Troubleshooting

  • Ensure the local video file path is correct and accessible; otherwise, the node will fail to send the video.
  • If the video file size exceeds Telegram's limits, the message will not be sent; consider compressing the video.
  • If the Telegram session is not logged in or expired, the node will throw an error prompting to login again.
  • Errors related to permissions (e.g., CHAT_WRITE_FORBIDDEN) indicate the bot or user does not have rights to send messages to the chat.

Links

Discussion