Closed dev-masih closed 6 years ago
This is not related to lib. If you want to use markup you have to escape '_', because it used as markup token. Either you use Html markup, or not use it at all
Just as an FYI for those like me who had this same error and struggled to find a solution.
It is possible that you have unclosed markup in the message text you are trying to send.
For example, if your message is "This is *bold* text"
it will work perfectly. If you forget to close the bold marker () then it will throw this error. For example `"This is bold text"` will throw the exception.
Steps to reproduce
you can reproduce this bug with this tiny small project:
Expected behavior
Bot Answers with Text "Lang.HelpSection_Rules"
Actual behavior
Exception Happens with this ex object:
Environment data
NuGet Package Version: 14.2.0-rc-452 (i nearly sure i hit this in 14.0.0-rc-367 too)
.NET Version: .Net Framework 4.6.2
IDE: VS2017 15.6.0
App: Console Application