Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Исправить парсинг markdown там, где его нет #39

Open
MihaxXx opened this issue Sep 1, 2019 · 2 comments
Open
Labels
bug Something isn't working

Comments

@MihaxXx
Copy link
Owner

MihaxXx commented Sep 1, 2019

TelegramBots/Telegram.Bot#634

@MihaxXx MihaxXx added the bug Something isn't working label Sep 1, 2019
@MihaxXx
Copy link
Owner Author

MihaxXx commented Sep 1, 2019

Unhandled Exception: Telegram.Bot.Exceptions.ApiRequestException: Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 741
   at Telegram.Bot.TelegramBotClient.MakeRequestAsync[TResponse](IRequest`1 request, CancellationToken cancellationToken)
   at ScheduleBot.Program.BotOnMessageReceived(Object sender, MessageEventArgs MessageEventArgs) in /home/ubuntu/MMCS_Schedule_Bot/MMCS_Schedule_Bot/MsgsHandle.cs:line 202
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

@JohnDovey
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants