Telegram Bot icon

Telegram Bot

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

Actions101

Message → Send Photo

AI-generated

Summary

Sends a photo to a Telegram chat or channel using a Telegram file ID, external URL, or binary file data.

Inputs

  • chat_id (required) — Unique identifier for the target chat or channel username (e.g., @channelusername).
  • fileSource — Select how the photo file is provided: via 'fileId', 'url', or 'binary'.
  • fileId (required) — Telegram File ID of an existing photo to send. Required when File Source is set to 'File ID'.
  • fileUrl (required) — URL of the image file to send. Required when File Source is set to 'URL'.
  • binaryPropertyName (required) — Name of the incoming binary property containing the image file. Required when File Source is set to 'Binary Data'.
  • caption — Text caption to accompany the photo.
  • parse_mode — Text formatting syntax used for the caption: None, Markdown, MarkdownV2, or HTML.
  • reply_markup — JSON object defining inline keyboards, reply keyboards, or custom reply markup.
  • additionalFields — Optional settings including reply_to_message_id, message_thread_id, disable_notification, and protect_content.

Output shape

a single record

Returns the Telegram Message object representing the sent photo message, unwrapped from the API response payload.

Examples

Example 1: Send an image from incoming n8n binary data with a caption

Set Chat ID to the target chat, File Source to 'Binary Data', Binary Property to 'data', and enter the caption text.

Example 2: Send a photo using an existing Telegram File ID

Set Chat ID to the target chat, File Source to 'File ID', and supply the Telegram File ID string.

Example 3: Send an image URL with Markdown-formatted caption and inline keyboard

Set Chat ID to '@mychannel', File Source to 'URL', File URL to 'https://example.com/photo.jpg', Parse Mode to 'Markdown', and provide Inline Keyboard JSON in Reply Markup.

Links

Discussion