Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reemplace :emoji: codes as theirs unicode representation #38

Closed
jacopocappelli1989 opened this issue Oct 13, 2015 · 4 comments
Closed

Comments

@jacopocappelli1989
Copy link

Hi,
i try to use emoticon/emoji in sendMessage i try ":name:" format and this format: http://pythonhosted.org/python-telegram-bot/telegram.emoji.html
But not work, can you help me? We need to develop some components?

Thanks,
J

@yagop
Copy link
Owner

yagop commented Oct 13, 2015

There is no such feature on this module, but I think you can use emoji as its UTF8 code. Just copy and paste the emoji. I also think you can use the UTF8 code like:

console.log("\u{1F604}");

http://apps.timwhitlock.info/emoji/tables/unicode

@yagop yagop changed the title Emoticon / Emoji Reemplace :emoji: codes as theirs unicode codes Oct 13, 2015
@yagop yagop changed the title Reemplace :emoji: codes as theirs unicode codes Reemplace :emoji: codes as theirs unicode representation Oct 13, 2015
@lenny76
Copy link

lenny76 commented Oct 13, 2015

I solved using:

$ npm install node-emoji
var emoji = require('node-emoji').emoji;
bot.sendMessage(chatId, 'HI! ' + emoji.heart);

@GochoMugo
Copy link
Collaborator

@jacopocappelli1989 This library is mostly focused on interacting with the Bot API i.e. providing low-level access to the API. This seems like a high-level feature that is better suited in a high-level library, or in your application code as @lenny76 suggests above.

Side note: you may be interested with tgfancy, as soon as I add emoji support (issue GochoMugo/tgfancy#3).

@MarketingAgencybyYeremenkoAndrii

lenny76 - it work ) thanks/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants