Learn R Programming

evolution (version 0.0.1)

send_whatsapp_audio: Send WhatsApp audio (voice note)

Description

Send WhatsApp audio (voice note)

Usage

send_whatsapp_audio(
  client,
  number,
  audio,
  delay = NULL,
  link_preview = NULL,
  mentions_everyone = NULL,
  mentioned = NULL,
  quoted = NULL,
  verbose = FALSE
)

Value

A named list parsed from the JSON response produced by the Evolution API for audio messages. The list may include message ID, queue metadata, and delivery-related fields. The HTTP status code is stored in attr(result, "http_status"). This output indicates that the audio message request was accepted by the API.

Arguments

client

An evo_client() object.

number

Character. Recipient in E.164 format (e.g., "+5581999...").

audio

URL or base64.

delay

Integer (ms). Optional presence delay before sending.

link_preview

Logical. Enable URL link preview.

mentions_everyone

Logical. Mention everyone (if applicable).

mentioned

Character vector of JIDs to mention (e.g., jid("+55...")).

quoted

Optional list with Baileys message key and message (reply-to).

verbose

Logical. If TRUE, logs request/response details.