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}")