Fix ReactorError not correctly raised. Added Program_ReactorError example

This commit is contained in:
Wizou 2023-05-17 18:26:53 +02:00
parent e8b0bb9245
commit 131fd36106
7 changed files with 81 additions and 10 deletions

2
FAQ.md
View file

@ -203,7 +203,7 @@ If Telegram servers decide to shutdown this secondary connection, it's not an is
This should be transparent and pending API calls should automatically be resent upon reconnection.
You can choose to increase `MaxAutoReconnects` if it happens too often because your Internet connection is unstable.
3) If you reach `MaxAutoReconnects` disconnections, then the **OnUpdate** event handler will receive a `ReactorError` object to notify you of the problem,
3) If you reach `MaxAutoReconnects` disconnections, then the **OnOther** event handler will receive a `ReactorError` object to notify you of the problem,
and pending API calls throw the network IOException.
In this case, the recommended action would be to dispose the client and recreate one