Set webhook for incoming messages on Twilio-Whatsapp phone number

£可爱£侵袭症+ 提交于 2021-02-10 16:41:09

问题


We have a Twilio phone number that's Whatsapp-capable. When trying to programmatically set the webhook for incoming messages, the webhook is correctly set but messages are not coming through.

It appears that the webhook for Whatsapp phone number lives in a different place than the one for normal phone numbers.

To manually fix this we had to go into the Twilio console -> Programmable SMS -> Whatsapp -> Senders -> select our phone number -> paste the webhook URL and save.

So the question is: is there a way to programmatically (Twilio API) set the webhook for Whatsapp phone number?

Thanks,


回答1:


Heyo Twilio Developer Evangelist here. 👋

I checked with the team and unfortunately, setting the webhook URL programmatically is not possible right now. The console is the only place to do it today.



来源:https://stackoverflow.com/questions/57384707/set-webhook-for-incoming-messages-on-twilio-whatsapp-phone-number

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