pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

Stop polling when getting Unauthorized/Not Found(token errors)

Open coder2020official opened this issue 1 year ago • 3 comments

@badiboy what do you think of stopping polling when a token no longer becomes valid?

coder2020official avatar Aug 11 '24 15:08 coder2020official

Unauthorised error may lead to stop polling, because there is no way to revive bot with the same token.

Badiboy avatar Aug 11 '24 19:08 Badiboy

Wdym? Do U think it will be reasonable to implement it? Rn it will re-try connecting infinitely

coder2020official avatar Aug 12 '24 04:08 coder2020official

I think it's a translation error and they're agreeing that it should lead to polling being stopped because you can't continue with the same token so there's no point in retrying.

All-The-Foxes avatar Aug 15 '24 19:08 All-The-Foxes