v1

latestOpenAPI 3.0.32026-07-171230219.1 KB
messages

Sends an image to a chat

Sends an image to a chat

post/api/messages/sendImage

Request body

tostring required

Recipient chat ID

imgDatastring required

Image file (path, URL, DataURL, or Base64)

filenamestring

Filename with extension

captionstring

Media caption

idstring

Message ID

waitForIdboolean required

Wait for message ID

Response

Successful response

OR
boolean required
OR
string required