W
W
Werner Heisenberg2021-05-08 00:41:04
Java
Werner Heisenberg, 2021-05-08 00:41:04

How can a telegram bot respond to emoticons?

When I wrote one dialog bot, I had a problem with emoji, or rather the bot's response to the emoticons that were sent to it. The bot itself can send emoticons along with the text, but it is not able to respond to them. It is written in java and all libraries are in place.
How can I make the bot recognize emoticons sent to it?
6095b34dd35f0363970312.png
"Bot on the left. (Sorry for the flag of the USSR, accidentally got out)"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Roo, 2021-05-08
@xez

Catch what comes there, what text, and write the logic of the answer.
Everything seems to be obvious.

M
Mimocodil, 2021-05-08
@Ezekiel4

Use the emoji4j library to recognize emoji .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question