I am sending SMS via twilio C# to selected phone numbers. I see in FAQs in twilio that it is possible to filter out the numbers who do not wish to receive SMSes. I see this kind of information in the link: https://www.twilio.com/help/faq/sms/does-twilio-support-stop-block-and-cancel-aka-sms-filtering
My questions are:
1) When user replies STOP, how does twilio handles it?
2) How will my application know that someone has replied "STOP" and opted out from receiving messages? (Actually I want to update database when someone replies "STOP" to twilio and unsubscribe)
Unwanted incoming calls to your Twilio number can be blocked in a number of ways: Using a blank webhook, responding with the <Reject> verb, or even a "virtual block list".
Log in to the Twilio Console's Phone Numbers page. Click on the phone number you'd like to have connected to your Function. If you want the Function to respond to incoming SMS, find the A Message Comes In option under Messaging.
If you are using a Messaging Service, you can configure your keywords using Advanced Opt-Out to match the compliant opt-out, opt-in and help message language from your short code application. You can also choose to disable Twilio's keyword handling altogether and use your own system.
Twilio Evangelist here.
This is a great question: for normal numbers when the persons sends back a 'STOP' message, Twilio will prevent your account from sending an SMS to that person again. However we will also log the 'STOP' message to your SMS logs so that you know they have opted out.
The person sending the 'STOP' SMS will then get this message
"You have successfully been unsubscribed You will not receive any more messages from this number. Reply START to resubscribe."
If you attempt to send them an SMS again, you will get an error from the REST API: "21610: Message cannot be sent to the 'To' number because the customer has replied with STOP".
The person can opt back into your messages by sending a 'START' message.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With