Open MihaxXx opened 5 years ago
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()
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.
https://github.com/TelegramBots/Telegram.Bot/issues/634