Audio API component
Create an Audio object for the API
The audio file's link or id
Whether audio is an id (true) or a link (false)
import { Audio } from "whatsapp-api-js/messages";const audio_message = new Audio("https://www.example.com/audio.mp3");const audio_id_message = new Audio("12345678", true); Copy
import { Audio } from "whatsapp-api-js/messages";const audio_message = new Audio("https://www.example.com/audio.mp3");const audio_id_message = new Audio("12345678", true);
Optional
Readonly
The id of the media
The link of the media
Audio API component