HandlePollingErrorAsync stop bot #1268
Labels
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
✔️ Resolution: Won't Fix
Resolved because we decided not to change the behavior reported in this issue.
Hi
When My bot got exception and it catch into HandlePollingErrorAsync my application stopped and I have to re open application
can you help me how can I change my code
`async Task HandlePollingErrorAsync(ITelegramBotClient botClient, Exception exception, CancellationToken cancellationToken)
{
// Get the line number of the exception
var lineNumber = new StackTrace(exception, true).GetFrame(0).GetFileLineNumber();
}`
The text was updated successfully, but these errors were encountered: