bug fixed 1000 games
This commit is contained in:
parent
3226d4c162
commit
3e61fa33c4
4 changed files with 29 additions and 22 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue