I π emojis, so when I heard about the new Twilio API for WhatsApp I wanted to build something emojiriffic. Inspired by Monica Dinculescuβs to_emoji...
For further actions, you may consider blocking this person and/or reporting abuse
Good post mate! It is very useful, but a question.
If I use my personal phone number to do the tests, is it safe? I read WhatsApp sometimes prohibit accounts, to make spam.
Ty again for this post π
As long as you follow the WhatsApp terms of service, particularly the parts under "Acceptable use of our services" then I'm sure you won't get banned for spam.
I've been sending messages to the WhatsApp sandbox as part of the Twilio API to test my application and had no problem.
That's interesting! I didn't know there was a list like that of all the emoji kept up to date from the consortium. Looks like a hassle to parse!
I imagine that the manually built mapping allows more expressive keywords to be added to the JSON, rather than trying to determine them from the short description. That's definitely a trade off between ease of maintenance and keyword accuracy.
I didn't know emoninja existed though. I'm excited that it does as I'll be able to use it in my Ruby projects when I need emojis too. Thanks!
How do you listen for incoming messages in a local node setup?
In a local Node setup you'll need to set up a web application to receive the incoming messages. And then tunnel to that local application using something like ngrok.
Check out this tutorial that shows how to receive SMS in Node. The process for SMS and WhatsApp messages is the same.
Made a bot π€
I love it! What's the Glitch project? Would love to take a look at how you did it.
glitch.com/~wealthy-plate