H
H
Hikanosu2022-02-16 23:31:41
Python
Hikanosu, 2022-02-16 23:31:41

How in aiogram to save the formatting that the user uses when entering?

For example, the user enters the following formatted text: " This was formatted text without html"

But the handler receives the text without formatting: "This was formatted text without html."

How to save the formatting applied by the user to the text? I saw this in a couple of bots, but I still didn’t figure out how to do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2022-02-16
@Hikanosu

As an option - an object parameter Messagecalled html_text
Yes message.md_text. In general, in telegram this is called Entity , so you can parse as you like

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question