Videos
Just stumbled over this post:
Been using the web version and loving it.. But i got to ask: are there any shortcuts for the emoticons? or at least an easier way to insert them? too lazy to take hand off keyboard → hold mouse → bunch of clicks → back too keyboard :P
Source
But there were no answers and I also can't find any information elsewhere.
I also noticed that the web client started to automatically convert your text smileys to emoticons, so far I know of :-) and :-*. Are there more?
I extracted this list from the JavaScript code, so I assume this is all they support so far.
(y) = 👍
(n) = 👎
:-) = 🙂
:-( = 🙁
:-p = 😛
:-| = 😐
:-\= 😕
:-d =
:-* = 😘
<3 = ❤
^_^ = 😁
>_< = 😆
;-) = 😉
Hit the colon button and enter a word. Example below:
https://imgur.com/gallery/MOKP36x
:love
I'm a bit late here but I ran into the same issue. Here's the solution:
Don't use
var urlApiWhats = "https://wa.me/" + number + "?text=" + message;
Use this instead
var urlApiWhats = "https://api.whatsapp.com/send/?phone=" + number + "&text=" + message;
Vissie's answer is working as he/she uses api.whatsapp.com/send/. It's also true that the browser will still show � but you'll see the emoji once you open WhatsApp. However the short url wa.me won't work. Apprently WhatsApp's server will redirect all wa.me requests to api.whatsapp.com/send/ and during that redirection emojis become �. It's not the problem of your code.
This is how you should encode your URL:
const url = `https://api.whatsapp.com/send?phone=31612345678&text=${encodeURIComponent('Cheers from Vissie ⚡️')};
// returns: "https://api.whatsapp.com/send?phone=31612345678&text=Cheers%20from%20Vissie%20%E2%9A%A1%EF%B8%8F"
You can use https://wa.me/, I just used the other URL for this example. It's possible that in the browser it still gives �. But on your phone this should work.