One of the biggest complaints in Telegram is people getting lots of timeout errors. I found the code to be too conservative in increasing the amount of sleep time for each error, which usually resulted in temp IP bans. This pull request increases sleep timeouts very aggressively and adds a few sleeps in other parts to help prevent timeout errors.
Yes, I understand that timeout errors are temporary but from a non-programmer's view, seeing error after error after error does not feel good about the software you are running, even if the error it outside your control. This patch simply helps reduce the number of those errors.
TESTING STAGE
Been running with this code for about 2 months.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[N/A] I have updated the documentation in /docs if I have changed the config, arguments, logic in how the bot works, or anything that understandably needs a documentation change.
[N/A] I have updated the config file accordingly if my change requires a new configuration setting or changes an existing one.
[x] I have tested the bot with no issues for 24 continuous hours. If issues were experienced, they have been patched and tested again.
Description
One of the biggest complaints in Telegram is people getting lots of timeout errors. I found the code to be too conservative in increasing the amount of sleep time for each error, which usually resulted in temp IP bans. This pull request increases sleep timeouts very aggressively and adds a few sleeps in other parts to help prevent timeout errors.
Yes, I understand that timeout errors are temporary but from a non-programmer's view, seeing error after error after error does not feel good about the software you are running, even if the error it outside your control. This patch simply helps reduce the number of those errors.
TESTING STAGE
Been running with this code for about 2 months.
Types of changes
Checklist: