Create an Audio object for the API
Setting voice to true adds transcriptions support, auto download, and the "played" status is sent when heard by the recipient. The file should be .ogg with OPUS codec for full voice note support.
The audio file's link or id
Whether audio is an id (true) or a link (false)
Optionalvoice: booleanWhether the audio is a voice note
Audio API component