From 033a0db12f105c221a9e5513ecf0b1c066959df7 Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Sun, 16 Nov 2025 22:52:45 +0300 Subject: [PATCH] 3 sec timeout from questions /lastyear_or_1000games --- LichessClientTG_bot/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LichessClientTG_bot/bot.py b/LichessClientTG_bot/bot.py index c5570f8..51976a6 100644 --- a/LichessClientTG_bot/bot.py +++ b/LichessClientTG_bot/bot.py @@ -704,7 +704,7 @@ class LichessBot: # Add delay between requests to avoid rate limiting if i < len(gamers) - 1: - await asyncio.sleep(1.0) + await asyncio.sleep(3.0) # If no activity for any player if not has_any_activity: @@ -786,9 +786,9 @@ class LichessBot: await update.message.reply_text(text) has_any_activity = True - # Wait 1 second before next request (except after the last one) + # Wait 3 seconds before next request (except after the last one) if i < len(gamers) - 1: - await asyncio.sleep(1.0) + await asyncio.sleep(3.0) except Exception as e: logger.error(f"/lastYear_or_1000games error for {username}: {e}")