I've implemented a Google chat bot using node-red xmpp client nodes.
Everything works ok, but I don't know how to make my bot to send me a smiley/emoji/emoticon/etc.
For example, I want to say to my bot "hey, thanks", and I'd like the bot response to be the "thumbs up" emoticon, the one that comes up when you type "(Y)":
But what I get is the literal string "(Y)" and not the graphical equivalent. Do I have to send it in unicode or something like that? I'm guessing the graphical interpretation is up to the chat client (I'm chatting from the hangouts widget inside the gmail inbox page).
Well, I finally got it.
For example, this is the page for the "thumbsup" character: https://codepoints.net/U+1F44D
There, under "Representations", if you click on "show more", you'll see many representations for different languages. For the thumbsup, that has the codepoint
'\uD83D\uDC4D' to a unicode-enabled client, you should see the corresponding emoji.
Note: I ended up not implementing a Google chat bot (XMPP), but a Telegram bot using the Telegram API, but the key concepts are the same.