Closed Artgit closed 3 years ago
I'm tryint to read the input text message in my bot via org.telegram.telegrambots.meta.api.objects.Message.getText()method but provided text doesn't contain formatting.. only plain text. How to get formatting created by user?
org.telegram.telegrambots.meta.api.objects.Message.getText()
The Formatting is passed via MessageEntities. The text field will always be the raw text. Take a look at the entities field of Message: https://core.telegram.org/bots/api#messageentity
I'm tryint to read the input text message in my bot via
org.telegram.telegrambots.meta.api.objects.Message.getText()
method but provided text doesn't contain formatting.. only plain text. How to get formatting created by user?