📤 Chatting

Send an voice message

Either from an URL or base64 data - look at the request schemas for details.

post/api/sendVoice

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/sendVoice
  • Auth: API key in header X-Api-Key

Request body

chatIdstring required
reply_tostring

The ID of the message to reply to - false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA

convertboolean required

Convert the input file to the required format using ffmpeg before sending

sessionstring required

Example request

{
  "chatId": "11111111111@c.us",
  "file": {
    "url": "https://github.com/devlikeapro/waha/raw/core/examples/dev.likeapro.opus"
  },
  "convert": true
}

Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.