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

Send a photo message to a specified Telegram chat, providing the photo via a file ID, URL, or binary data, with optional caption, parse mode, reply markup, and additional message options.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername).
  • File Source (required) — Method to provide the photo to send: File ID, URL, or Binary Data.
  • File ID (required) — File ID of the photo to send (required if File Source is File ID).
  • File URL (required) — URL of the photo to send (required if File Source is URL).
  • Binary Property (required) — Name of the binary property containing the file to send (required if File Source is Binary Data).
  • Caption — Caption text for the photo message.
  • Parse Mode — Formatting mode for parsing entities in the caption: None, Markdown, MarkdownV2, or HTML.
  • Reply Markup (JSON) — Optional inline keyboard, reply keyboard, or other reply markup as JSON.
  • Additional Fields — Optional additional parameters such as disable notification, protect content, reply to message ID, message thread ID, disable web page preview, and allow sending without reply.

Output shape

a single record

Returns the Telegram API response object for the sent photo message, accessible under the output item's JSON. Handles binary upload if photo is provided as binary data. Errors are thrown or handled according to node settings.

Links

Discussion