bug fixed 1000 games

This commit is contained in:
vrubel 2025-11-16 13:24:39 +03:00
parent 3226d4c162
commit 3e61fa33c4
4 changed files with 29 additions and 22 deletions

View file

@ -640,6 +640,11 @@ class LichessBot:
year_ms = 365 * 24 * 3600 * 1000
since_ms = now_ms - year_ms
try:
# Inform user that the request is being processed
try:
await update.message.reply_text("⏳ Please wait a moment, processing the request…")
except Exception:
pass
data = await self.lichess_api.get_games_period(username, since_ms, now_ms, rated_only=True)
if not data:
await update.message.reply_text(t('no_data', lang))