I'm using whatsapp cloud api to build a chatbot, I configured webhook, and when the user sends an audio message I get the payload
{
from: 'xxxxxxxxxx',
id: 'wamid.HBgMOTcyNTI2MzY2NjU1FQIAEhgUM0E3QjE0M0MyMTY5QjM0OTNFNzMA',
timestamp: '1658939005',
type: 'audio',
data: {
mime_type: 'audio/ogg; codecs=opus',
sha256: 'Lqg2WcBG7RY4NhzouRYGChsiem7BwyvaRKXrjsD/q/o=',
id: '715960496164079',
voice: true
}
}
I'm trying to understand how can I get the URL of the record, and what to do with this data?
I want to build a bot to convert the record to text using API but I'm not sure how this payload helps me.