MsgVariantAudio
WebM audio is converted to AAC/M4A for WhatsApp, Instagram, Messenger, Telegram and Twilio MMS; Web Chatt retains WebM. WhatsApp voice=true converts WebM to Ogg/Opus. Converted MMS audio is limited to 500 KiB.
audioUrlstring<uri>required
mimeTypestring
Concrete audio MIME type supported by the selected channel.
voiceboolean
When true, send as a voice note (PTT). When false or omitted, send as a basic audio file. WhatsApp only; voice notes require Ogg with Opus encoding per Meta.
textstring
context object
messageIdstringrequired
MsgVariantAudio
{
"audioUrl": "string",
"mimeType": "string",
"voice": true,
"text": "string",
"context": {
"messageId": "string"
}
}