Reputation: 1
I have a Whatsapp enabled Twilio number, but I do not receive messages from it.
message = client.messages.create(
from_='whatsapp:+1910708xxxx',
body='This is your flight confirmation for '
'IND-11 on 1/1/2022.',
to='whatsapp:+91xxxxxxxx'
However when I change the from number to the Whatsapp sandbox number, I do receive the message.
I did try to send a whatsapp message to my twilio number .. but I endup in my Messaging app inviting the number to use Whatsapp .. It is almost as if there are steps that needs to be done set Twilio number up for WA messaging ..
What am I missing ?
Upvotes: 0
Views: 242
Reputation: 24
I think you should use your sandbox number because I found it in Twilio documentation:
The Sandbox allows you to prototype with WhatsApp immediately using a shared phone number without waiting for your Twilio number to be approved by WhatsApp.
so it means if you're unable to send Whatsapp messages from your Twilio number then it's not approved by Whatsapp yet!
Upvotes: 0