-
Notifications
You must be signed in to change notification settings - Fork 677
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
Stopping a receiving messages when an error occurs #1107
Comments
Yes, that's the expected behaviour, it's the same as with previous events in the client. If there's an exception in user code we can't do anything other than stop execution. |
How should I restart receiver when an exception throwing? |
If there is an exception in the user code, then we will fall into |
There is a way to automatically restart the bot after an exception? I also have the same problem, but I'm receiving exception because a user has blocked the bot. I don't want to wrap each call to |
i have this problem, |
When an error occurs in
HandleUpdateAsync
andHandleErrorAsync
methods, bot stop receiving messages.Is that how it's supposed to work?
https://github.com/TelegramBots/Telegram.Bot.Extensions.Polling/blob/52c1edf4ff13d97c0b6d5ed8a62631cceadd9210/src/Telegram.Bot.Extensions.Polling/DefaultUpdateReceiver.cs#L99-L115
The text was updated successfully, but these errors were encountered: