botpress / v12

Botpress OSS – v12
https://v12.botpress.com
GNU Affero General Public License v3.0
71 stars 83 forks source link

[BUG]: Markdown does not work in Telegram Module #1378

Closed JamesonBR closed 3 years ago

JamesonBR commented 3 years ago

Hello, the text conversion in the web module is working normal, only in the telgram that is not converting, showing the special characters in the message.

JamesonBR commented 3 years ago

Even after the update, it still shows the unformatted characters in the telegram, such as: "&#x2F ;" which should be: "/"

Erik-J-D commented 3 years ago

This is mostly a limitation of telegram - its markdown rendering is is pretty limited. It's documented here. A potential fix would be something like having the telegram code scan for anything looking like a hex / html encoded representation of a unicode character and converting before it gets sent up, but that seems inelegant and could cause other small inconsistencies between telegram and the other channels. It's probably safer to pass in strings exactly as you want it rendered, without any encoding.