Send Telegram image
send-telegram-imageSends a single JPEG or PNG image as a Telegram photo to a chat ID or username, with an optional caption, using an image URL or base64 data.
Instructions
[Telegram] Send one image (JPEG or PNG, at most 5 MB) as a photo from the connected Telegram account, with an optional caption (Telegram's limit is 1024 characters). Pass the image as imageUrl (a public link this server downloads) or as imageBase64 — exactly one. Address it like send-telegram-message: a chatId from list-telegram-chats or a username, exactly one of the two. The caption is sent exactly as written — formatting marks are not interpreted. The account must be in the open state; check with get-telegram-status first. Messages cannot be unsent from here. The account owner may have set a disclaimer line that is appended to every caption automatically (and counts toward the limit); when one was, the response names it in disclaimerAppended.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "send-telegram-image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | No | Chat id from list-telegram-chats, as a string | |
| caption | No | Text shown under the photo, sent exactly as written (at most 1024 characters) | |
| imageUrl | No | Public http(s) URL of a JPEG or PNG image (at most 5 MB). It is downloaded by this server, so it must be reachable without signing in. | |
| username | No | Instead of chatId: a public @username, a t.me link, or a phone number | |
| imageBase64 | No | Instead of imageUrl: the JPEG or PNG file itself, base64-encoded (a data: URL prefix is accepted). Requests are capped at 2 MB, so this suits images up to about 1.5 MB. |