
#Twilio send sms emoji from web app code
You can start a conversation by scanning this QR code with your phone too.Įmoji translation via WhatsApp is possible with only a few lines of code when you have the right tools to hand. If you want to try the app out without connecting to the sandbox, send your message to our WhatsApp number +441745472072. If you get a message back saying your number is not associated with the sandbox channel, make sure you follow the instructions to connect your number to the sandbox.

👐 🆙 WhatsApp 🔛 your 🤳, send a 💬 to the sandbox 💯 and you’ll receive a response with your 💬 translated to emoji. Open up WhatsApp on your phone, send a message to the sandbox number and you’ll receive a response with your message translated to emoji. Open the WhatsApp sandbox, find the field for when a message comes in and paste in the Function URL. Copy the URL as we will need it to configure the WhatsApp channel. Save the Function and it will automatically deploy. handler = function ( context, event, callback ) Give your Function a name and a path.Įxports. Save the config and we’re ready to build the function.Īdd a new Function from the management page and choose the “Hello SMS” template, as responding to an incoming WhatsApp message uses the same TwiML as responding to an incoming SMS message. In the dependencies section add version 1.0.8 of moji-translate. In the Twilio console, head into the Runtime section to configure your Functions.
#Twilio send sms emoji from web app install
To use moji-translate in a Twilio Function we need to install it. Powering both of them is the moji-translate module, which in turn uses the emojilib keyword library by Mu-An Chiou. You will also need to connect your own WhatsApp account with the sandboxįirst up, let’s take a look at the what powers Monica’s apps. Follow these instructions to install the WhatsApp Sandbox Channel in your account.


Inspired by Monica Dinculescu’s to_emoji Twitter bot and emoji translator I decided to build a WhatsApp text-to-emoji translator. I 💖 emojis, so when I heard about the new Twilio API for WhatsApp I wanted to build something emojiriffic.
