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
@@ -603,6 +604,10 @@ if message.chat.type == "channel":
603
604
604
605
```
605
606
607
+
### How can I handle reocurring ConnectionResetErrors?
608
+
609
+
Bot instances that were idle for a long time might be rejected by the server when sending a message due to a timeout of the last used session. Add `apihelper.SESSION_TIME_TO_LIVE = 5 * 60` to your initialisation to force recreation after 5 minutes without any activity.
0 commit comments