Answer the question
In order to leave comments, you need to log in
How to make telegram bot display emoji flags?
At the start and when changing the language, the user is shown a dialog with buttons. I want to make a checkbox for each button.
This code returns the emoji from the code and for other emoji it works without issue (e.g. blue book, apple):
new String(Character.toChars(codePoint))
But when I try to give it a flag code... for example... USA (0x1F1FA, 0x1F1F2, 0x1F1F8), it gives me
codes I take emoji from the site:
https://unicode.org/emoji/charts/full-emoji-list.html
So far I have only gotten to the point that, perhaps, telegram should somehow understand how exactly it should display what I send. Tell me how to do it?
Answer the question
In order to leave comments, you need to log in
Flags are encoded with two characters. For example, 0x1F1FA + 0x1F1F8 (U.S. flag), or, 0x1F1FA + 0x1F1FF (Uzbekistan flag).
Select the desired flag in the telegram emoji list, copy and paste into the code as a string.
Telegram has nothing to do with it. It uses system emoji. This is how Windows draws them. You can check on Android/iOS - it will be much better there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question