v1

latestOpenAPI 3.0.32026-07-171230219.1 KB
messages

Sends a file or document to a chat

Sends a file or document to a chat

post/api/messages/sendFile

Request body

tostring required

Recipient chat ID

filestring required

File (path, URL, DataURL, Base64, or Buffer)

filenamestring

Filename with extension

captionstring

Media caption

Response

Successful response

OR
string required