Telegram - Send photo action

The Send photo action sends a photo to a chat in Telegram.

Input

Input fields vary based on your Send by selection. The following input fields are common to all options. Refer to the Telegram Bot API sendPhoto documentation for more information on available input fields.

Input fieldDescription
Send bySelect how to provide the photo. Options are File content, File ID, or File URL.
Chat IDEnter the unique identifier for the target chat or the username of the target channel.
CaptionOptional. Enter a caption for the photo.
Parse modeOptional. Select the mode to format the caption with bold, italic, or other styling. Options are Markdown, MarkdownV2, or HTML. Leave blank for plain text.
Has spoilerOptional. Select whether to cover the photo with a spoiler animation.
Disable notificationOptional. Select whether to send the message silently.
Protect contentOptional. Select whether to protect the message content from forwarding and saving.

Output

This action returns the sent message. Refer to the Telegram Bot API Message documentation for more information on available output fields.

Output fieldDescription
Message IDThe message's unique identifier inside the chat.
FromThe bot that sent the message.
ChatThe chat the message was sent to.
DateThe Unix timestamp the message was sent.
PhotoThe available sizes of the sent photo.
CaptionThe caption of the sent photo, if any.

Last updated: