Receive whatsapp voice message in Twilio

此生再无相见时 提交于 2019-12-05 02:51:35

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/56050997/receive-whatsapp-voice-message-in-twilio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!