Reputation: 155
I'm creating a chatbot on WhatsApp that requires Users authentication, so the bot would be asking for Users credentials and do the validation from our server-side. So I want to self-destruct the Users password(delete or update to XXXXXX) for security purposes.
Upvotes: 1
Views: 3392
Reputation: 73065
Twilio developer evangelist here.
You can either delete a message or update it to remove the body that is stored in Twilio. I wrote a blog post about how to delete or redact messages as they arrive in Node.js, which might be of help. It is about SMS, but WhatsApp messages are treated the same.
Note, I don't think you can update the message that the user sent to you from WhatsApp, just the representation of it within Twilio.
Let me know if that helps at all.
Upvotes: 3