Telegram Send Video

A guide to the Telegram Send Video action for sending videos to a Telegram chat.

The Telegram Send Video Action allows you to send videos to a specified Telegram chat or channel. This is ideal for sharing video content, such as tutorials, demonstrations, or announcements.

Connection Setup

You will need a Telegram Bot and its API token.

  1. Create a new bot by talking to the BotFather on Telegram.

  2. The BotFather will provide you with an API token.

  3. In AgenticFlow, navigate to Settings > Connections and add a new Telegram Bot Connection, providing your API token.

Configuration

Input Parameters

Parameter
Type
Description

Connection

Connection

Select the Telegram Bot connection you created.

Chat ID

Text

The unique identifier for the target chat or channel (e.g., @channelusername or a chat ID).

Video

Text

The video file to send. You can provide a file path, an HTTP URL, or a file ID from Telegram's servers.

Caption

Text

An optional caption for the video (0-1024 characters).

Parse Mode

Select

Choose how to parse entities in the caption. Options are Markdown, MarkdownV2, or HTML.

Supports Streaming

Boolean

If true, the video will be suitable for streaming.

Disable Notification

Boolean

If true, the message will be sent silently.

Protect Content

Boolean

If true, the content of the sent message will be protected from forwarding and saving.

Output Parameters

Parameter
Type
Description

message

Object

An object containing the details of the sent message, including message_id.

Example: Sending a Product Demo

This example shows how to send a product demonstration video to a group of potential clients.

  1. Get the Video: Use a File Input Action to select the video file from your local machine.

  2. Configure the Telegram Send Video Action:

    • Connection: Select your Telegram Bot connection.

    • Chat ID: -1001234567890 (example chat ID for a private group)

    • Video: {{file_input_action.file_path}}

    • Caption: Here's a quick demo of our new feature! Let me know what you think.

    • Supports Streaming: true

This workflow allows for the easy distribution of video content to a targeted audience on Telegram.

Last updated

Was this helpful?