From d20846739c069e81c3affa754b9a6856b790dc0f Mon Sep 17 00:00:00 2001 From: grassblock Date: Fri, 8 Aug 2025 10:48:23 +0800 Subject: [PATCH] feat: add a load message while querying stats --- core/stats.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/stats.py b/core/stats.py index 365cec9..77ee973 100644 --- a/core/stats.py +++ b/core/stats.py @@ -22,6 +22,8 @@ async def handle_stats_command(message: Message): await message.reply("暂无统计数据") return + stats_message = await message.reply("正在生成统计信息...") + # 按消息数量排序用户 sorted_users = sorted( stats['users'].items(), @@ -80,4 +82,4 @@ async def handle_stats_command(message: Message): text += f"{name}: {user_data['wocai_count']} 次卖菜\n" text += "\n" - await message.reply(text) \ No newline at end of file + await stats_message.edit_text(text) \ No newline at end of file