Skip to content

Markdown and HTML

Ilya Ableev edited this page Sep 11, 2017 · 2 revisions

https://core.telegram.org/bots/api#formatting-options

Bad Request: can't parse entities in message text: Can't find end of the entity starting at byte offset

If you got this message, your action message has some mistakes in formatting. For example, if you are trying to use bold text, you set * symbols around the word. But in case you forgot to close that formatting, telegram couldn't parse it and send message:

Example of *bold text

Right on should be

Example of *bold* text

The script removes your "problematic" symbol (telegram calculates the position) and trying to send message again.

If you can see such error in your logs, try to fix original action text.