Actions41
- Chat Actions
- Contact Actions
- Custom Request Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- User Actions
Message → Send Message with Photo
AI-generatedSummary
Send a photo message to a specified Telegram chat with optional caption, reply threading, and message reply ID.
Inputs
- Chat ID (required) — The identifier of the chat where the photo message will be sent.
- Message Photo (required) — Local file path of the photo to be sent.
- Photo Caption — Text caption for the photo message.
- Reply to threadID — Optional thread identifier within the chat to send the message.
- Reply to messageId — Optional message ID to reply directly to a specific message.
Output shape
a single message record
Returns the result of the sendMessage API call containing information about the sent photo message.
Examples
Example 1: Send photo with caption in a chat
Specify the chat ID, provide a local file path to the photo, and optionally add a caption and thread or reply message IDs.