chore: don't retry bootstrap indefinitely

better behavior is to stop after a couple  of attempts
This commit is contained in:
Matthias
2025-09-21 15:02:34 +02:00
parent 4804ec986a
commit d34e7a1e8e

View File

@@ -360,7 +360,7 @@ class Telegram(RPCHandler):
await asyncio.sleep(2)
if self._app.updater:
await self._app.updater.start_polling(
bootstrap_retries=-1,
bootstrap_retries=10,
timeout=20,
drop_pending_updates=True,
)