You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
TelegramBots/Telegram.Bot#634
The text was updated successfully, but these errors were encountered: