Audio Media Object
The object required for sending an audio message. Can either be a self-hosted and publicly accessible audio, or an existing Meta-hosted audio file in a supported format. Meta or self hosted options have different object requirements.
Meta Hosted
This audio file must already exist.
Example
{
"id" : "AUDIO_ID",
}
Properties
id
: string — the audio file Id. This Id is returned in the response body when the audio file was first uploaded.
Self Hosted
The audio file must be readily accessible by public addresses.
Example
{
"link" : new URL( "https://www.example.com" ).href,
}
Properties
link
: string — link to the publicly hosted audio.