Gustavo Sorribas
Gustavo Sorribas

Reputation: 81

Receive whatsapp voice message in Twilio

I want to receive voice messages from whatsapp with Twilio. The native voice message you can record with the mic next to the text input. When I send that message, I get the message in the webhook but it is empty and with no media. I took a look at Twilio log of that message and it says that:

Twilio is unable to process the Content-Type of the provided URL. Please see the Twilio Markup XML Documentation for more information on valid Content-Types.

So it seems that Twilio for WhatsApp does not support Whatsapp native audio encoding.

Can anyone help me with this?

Thank you!

Upvotes: 4

Views: 2240

Answers (2)

Leonardo Sirino
Leonardo Sirino

Reputation: 517

It seems that native WhatsApp audio now works on Twilio. The parameter 'MediaUrl0' has the link to the audio, it is working for me

Upvotes: 1

Gustavo Sorribas
Gustavo Sorribas

Reputation: 81

I received this answer from Twilio

Hi Gustavo‍ ,

Thanks for reaching out. Audio files are currently supported through WhatsApp, but we discovered an issue with the way WhatsApp is passing the audio file to us that is preventing these voice recordings from coming through. WhatsApp has let us know this is something they will be addressing so look for that to be addressed in the coming months.

Thanks,

Hope this helps everybody

Upvotes: 4

Related Questions