How to display an emoji in a Facebook Messenger bot?

南楼画角 提交于 2020-01-07 05:12:28

问题


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.

Many thanks for any help.


回答1:


Some of the emojis are not supported. You will get snowflakes if you try this

decodeURI('\u2744')

whereas,

decodeURI('\uF382')

is not working.

Thanks Sriram



来源:https://stackoverflow.com/questions/41465642/how-to-display-an-emoji-in-a-facebook-messenger-bot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!