简体   繁体   English

如何在Node.js中使用Twitter API发布表情符号

[英]How to post emojis with the twitter api in Nodejs

I can post tweets using the Twit library: https://github.com/ttezel/twit but i'm not being able to post emojis, i tried writing &#xe131 and decodeURIComponent('&#xe131') but it doesn't work, how should I write the codes for twitter to recognize them as emojis?. 我可以使用Twit库发布推文: https : //github.com/ttezel/twit,但我无法发布表情符号,我尝试编写&#xe131和解码URIComponent('&#xe131'),但事实并非如此。工作时,我应该如何为Twitter编写代码以将其识别为表情符号? (semicolons were omitted here) (这里省略了分号)

我结束了将表情符号字符直接复制到代码🏆中的工作,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM