如何在Facebook Messenger机器人中显示表情符号? [英] How to display an emoji in a Facebook Messenger bot?
本文介绍了如何在Facebook Messenger机器人中显示表情符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在使用NodeJS制作的Facebook Messenger机器人中显示表情符号,但我不知道如何将字符转换为
I'm trying to display an emoji in a Facebook Messenger bot made in NodeJS but I cannot figure out how to turn chars like http://apps.timwhitlock.info/unicode/inspect/hex/1F382 into a string I could send via the API.
非常感谢您的帮助.
推荐答案
某些表情符号不受支持.尝试一下会得到雪花
Some of the emojis are not supported. You will get snowflakes if you try this
decodeURI('\u2744')
而
decodeURI('\uF382')
不起作用.
谢谢 斯里拉姆
这篇关于如何在Facebook Messenger机器人中显示表情符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文