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

Changes

No recorded changes to this endpoint across all 2 revisions of this API.