удалили сообщения That's all и Processing request...

This commit is contained in:
vrubel 2026-01-22 16:25:33 +03:00
parent b3b6a54e2d
commit 2ac38440da

View file

@ -943,12 +943,6 @@ class LichessBot:
) )
return return
# Send initial message about processing
try:
await update.message.reply_text(t('stats_processing', lang), parse_mode='HTML')
except Exception:
pass
# Process each gamer # Process each gamer
has_any_activity = False has_any_activity = False
for i, gamer in enumerate(gamers): for i, gamer in enumerate(gamers):
@ -1042,9 +1036,6 @@ class LichessBot:
# If no activity for any player # If no activity for any player
if not has_any_activity: if not has_any_activity:
await update.message.reply_text(t('no_activity', lang)) await update.message.reply_text(t('no_activity', lang))
else:
# Send final message that all is done
await update.message.reply_text(t('stats_all_done', lang))
# Increment counter for the period command # Increment counter for the period command
if period == "today": if period == "today":
@ -1087,12 +1078,6 @@ class LichessBot:
) )
return return
# Send initial message about processing
try:
await update.message.reply_text(t('last_year_1000_processing', lang), parse_mode='HTML')
except Exception:
pass
now_ms = int(time.time() * 1000) now_ms = int(time.time() * 1000)
year_ms = 365 * 24 * 3600 * 1000 year_ms = 365 * 24 * 3600 * 1000
since_ms = now_ms - year_ms since_ms = now_ms - year_ms
@ -1141,9 +1126,6 @@ class LichessBot:
# If no activity for any player # If no activity for any player
if not has_any_activity: if not has_any_activity:
await update.message.reply_text(t('no_activity', lang)) await update.message.reply_text(t('no_activity', lang))
else:
# Send final message that all is done
await update.message.reply_text(t('stats_all_done', lang))
self.counters.increment('last_year_1000') self.counters.increment('last_year_1000')