Actions17
Send Document
AI-generatedSummary
Send a document to a Telegram chat using the specified bot token and optional reply, caption, and rate‑limit settings.
Inputs
- botToken — Bot token from input (e.g. from Orchestrator/Strapi)
- chatId (required) — Chat ID of the destination chat; usually from a previous node.
- replyToMessageId — Telegram message_id to reply to; often derived from previous nodes.
- replyMarkup — Inline keyboard or reply keyboard JSON; optional for the operation.
- mediaSource — Source of media: URL or file_id (or binary data if using binary mode).
- media — URL or Telegram file_id for the document; defaults to the value from the previous node.
- binaryPropertyName — Name of the binary property in the input item that holds the file data (default: "data").
- caption — Caption text for the document; falls back to the node's text field.
- captionEntities — Array of caption entities (formatting hints) for the document.
- useRateLimit — Enable Redis‑based rate limiting to avoid 429 errors (requires Redis credentials).
Output shape
list of items per output (success, blocked, error)
Success output contains Telegram API response objects; blocked output contains items for 403 (bot blocked) with error details; error output contains items for other failures when continueOnFail is enabled. Each output is an array of record objects with
jsonandpairedItemfields.
Examples
Example 1: Send a PDF from a URL
Bot Token from $json.access_token, Chat ID from $json.chatId, Media Source URL, Media URL from $json.url, no binary property, optional caption from $json.caption
Example 2: Upload a file from binary data
Bot Token from $json.access_token, Chat ID from $json.chatId, Media Source set to Binary, Binary Property Name from $json.binaryPropertyName, optional caption from $json.caption