Basalam icon

Basalam

Send messages and photos via Basalam Bot API

Actions2

Chat → Bot Send Photo

AI-generated

Summary

Send a photo message from the bot to a specified chat via the Basalam Bot API using binary file data as the photo source.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username of the target channel.
  • Input Binary Field (required) — Name of the binary property in the input containing the photo file data to upload.
  • Caption — Optional caption text to include with the photo, up to 1024 characters.
  • Reply Markup — Optional interface additional options like Force Reply, Inline Keyboard, Reply Keyboard, or keyboard removal.
  • Force Reply — Settings to force a reply interface for the user, applicable if Reply Markup is 'Force Reply'.
  • Inline Keyboard — Defines an inline keyboard with rows of buttons, each having text and optional URL or callback data.
  • Reply Keyboard — Custom reply keyboard options, including button text and display behavior.
  • Reply Keyboard Remove — Options to remove a custom reply keyboard, with optional selective targeting.
  • Additional Fields — Extra options such as replying to a message ID, silent notification, or specifying the filename of the upload.

Output shape

a single JSON object for each input item representing the API response from sending the photo

Each output corresponds to an input item (paired output). Requires binary data with a valid file name; otherwise, the node throws an error. Errors can be captured per item if 'Continue On Fail' is enabled.

Discussion