Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Message → Send Document

AI-generated

Summary

Send a document file to a specific Telegram chat by specifying the target chat ID and the document source as a file ID, URL, or binary data, optionally including a caption, parse mode, reply markup, and additional message options.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername) to which the document will be sent.
  • File Source (required) — Method to provide the document file: File ID (existing Telegram file), URL, or binary data from workflow input.
  • File ID (required) — File ID of the document to send when File Source is 'File ID'.
  • File URL (required) — URL of the document to send when File Source is 'URL'.
  • Binary Property (required) — Name of the binary property containing the document when File Source is 'Binary Data'.
  • Caption — Optional caption text for the document.
  • Parse Mode — Formatting mode for the caption text, such as None, Markdown, MarkdownV2, or HTML.
  • Reply Markup (JSON) — Optional inline keyboard, reply keyboard, or other reply markup expressed as JSON.
  • Additional Fields — Optional settings including disable_notification, protect_content, reply_to_message_id, message_thread_id, disable_web_page_preview, and allow_sending_without_reply to control message behavior and appearance.

Output shape

a single record representing the sent message's API response

Returns the Telegram API response for the sent document message, including message details. The response is wrapped in one JSON object per execution item. Errors may be returned if the API call fails.

Links

Discussion