Telegram Bot icon

Telegram Bot

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

Actions101

Chat → Set Chat Photo

AI-generated

Summary

Set a new photo for a specified Telegram chat by uploading an image as binary data.

Inputs

  • Chat ID (required) — Unique identifier for the target chat or username (@channelusername) where the photo will be set.
  • Binary Property (required) — Name of the binary property containing the new chat photo file to upload.

Output shape

a single object containing the Telegram API response for the setChatPhoto request.

Returns the Telegram API response wrapped in a json property. Requires binary data input containing the photo file. Throws an error if the operation fails.

Examples

Example 1: Update a chat photo with an image from workflow binary data

Provide Chat ID as string and specify the binary property holding the new photo image file.

Links

Discussion