go-telegram / bot

Telegram Bot API Go framework
MIT License
507 stars 46 forks source link

Fixed EscapeMarkdown for \ symbol #44

Closed cubicbyte closed 6 months ago

cubicbyte commented 8 months ago

You forgot to escape the \ character in the EscapeMarkdown function, which caused me some errors.

Details in this pr from a similar library that also has this disease: https://github.com/go-telegram-bot-api/telegram-bot-api/pull/604

negasus commented 7 months ago

According to the documentation, the symbol '/' should not be escaped. If you add this character for any reason, you should escape it manually.