I’m doing a Java based Telegram Bot API, but I don’t know how to send emojis from Java.
I’ve tried to send emojis as unicode using the emoji-java library, but it doesn’t seem to work.
So, how can I send emojis from Java to Telegram?
Thank you.
I’m doing a Java based Telegram Bot API, but I don’t know how to send emojis from Java.
I’ve tried to send emojis as unicode using the emoji-java library, but it doesn’t seem to work.
So, how can I send emojis from Java to Telegram?
Thank you.
3
Answers
Here is the code I’ve been using:
The list of emojis can be downloaded from here
Here is a sample bot which sends emojis as message. And also it has buttons with emojis.
Dependencies to add to maven pom.xml file:
Here is how bot looks like:
type any emoji in telegram;
select text area where emoji is;
copy it and paste into Intellij Idea. The IDE will automatically generate code for it.