Telegram Advance AI Webhook icon

Telegram Advance AI Webhook

AI Agent-ready Telegram webhook node for sending messages and media, downloading files, or waiting for in-chat responses

Send Media

AI-generated

Summary

Send a media file (document, photo, video, audio, voice, or animation) to a Telegram chat.

Inputs

  • chatId (required) — Target Telegram chat ID.
  • mediaType (required) — Type of media to send (animation, audio, document, photo, video, voice).
  • mediaSource (required) — Source of the media: binary data, public URL, or existing Telegram File ID.
  • binaryPropertyName (required) — Name of the input binary field containing the media file (when mediaSource is binary).
  • fileUrl (required) — Public HTTP(S) URL that Telegram can download (when mediaSource is url).
  • mediaFileId (required) — ID of a file already stored by Telegram (when mediaSource is fileId).
  • mediaFileName — Optional filename override; otherwise the binary filename is used (when mediaSource is binary).
  • caption — Optional caption for the media, up to 1024 characters.
  • mediaOptions.disableNotification — Whether to send the media silently.
  • mediaOptions.parseMode — How Telegram should parse formatting in the caption (none, HTML, MarkdownV2).
  • mediaOptions.replyToMessageId — If set, the media is sent as a reply to this message ID.
  • mediaOptions.supportsStreaming — Whether the uploaded video is suitable for streaming (only applies when mediaType is video).

Output shape

object

The Telegram API response containing the sent message (message_id, chat, date, and the media field). Paired to the input item.

Examples

Example 1: Send a photo from binary data

Set chatId (or use expression), mediaType=photo, mediaSource=binary, binaryPropertyName='data', optionally provide mediaFileName and caption.

Links

Discussion