fix: no user status

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong0618
2025-07-15 19:10:53 +08:00
parent a714f8b422
commit aa06fb2c7b

View File

@ -81,6 +81,7 @@ def summary_command(message: Message, bot: TeleBot):
def stats_command(message: Message, bot: TeleBot): def stats_command(message: Message, bot: TeleBot):
"""获取群组消息统计信息""" """获取群组消息统计信息"""
stats = store.get_stats(message.chat.id) stats = store.get_stats(message.chat.id)
print(11111111111111111)
if not stats: if not stats:
bot.reply_to(message, "没有找到任何统计信息。") bot.reply_to(message, "没有找到任何统计信息。")
return return
@ -94,8 +95,7 @@ def stats_command(message: Message, bot: TeleBot):
bot.reply_to( bot.reply_to(
message, message,
( (
f"📊 群组消息统计信息:\n```\n{stats_text}\n```\n", f"📊 群组消息统计信息:\n```\n{stats_text}\n```\n👤 用户消息统计信息:\n```\n{user_text}\n```"
f"👤 用户消息统计信息:\n```\n{user_text}\n```",
), ),
parse_mode="MarkdownV2", parse_mode="MarkdownV2",
) )