powered by
Sends an audio message (push-to-talk / voice note) via Evolution API v2.
send_whatsapp_audio( client, number, audio, delay = NULL, quoted = NULL, verbose = FALSE )
A named list with the API response. The HTTP status code is stored in attr(result, "http_status").
attr(result, "http_status")
An evo_client() object.
evo_client()
Character. Recipient number with country code (e.g., "5581999990000" or "+5581999990000").
"5581999990000"
"+5581999990000"
URL, base64-encoded audio, or local file path (auto-encoded to base64). Supports ~ expansion.
~
Integer (ms). Optional presence delay before sending. Simulates typing before the message is sent.
Optional list with Baileys message key and message to reply to a specific message.
key
message
Logical. If TRUE, logs request/response details with cli.
TRUE
if (FALSE) { send_whatsapp_audio(client, "5581999990000", audio = "https://example.com/note.ogg") }
Run the code above in your browser using DataLab