mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2026-01-13 21:04:24 +08:00
feat: collapse the stat message (#62)
Signed-off-by: Keming <kemingy94@gmail.com>
This commit is contained in:
@@ -175,12 +175,15 @@ def stats_command(message: Message, bot: TeleBot):
|
|||||||
else:
|
else:
|
||||||
user_text = ""
|
user_text = ""
|
||||||
|
|
||||||
return_message = f"📊 群组消息统计信息:\n```\n{stats_text}\n```\n👤 用户消息统计信息:\n```\n{user_text}\n```\\-\\-\\-\n"
|
return_message = (
|
||||||
|
f"📊 群组消息统计信息:\n<blockquote expandable>\n{stats_text}\n</blockquote>\n"
|
||||||
|
f"👤 用户消息统计信息:\n<blockquote expandable>\n{user_text}\n</blockquote>\n"
|
||||||
|
)
|
||||||
|
|
||||||
bot.reply_to(
|
bot.reply_to(
|
||||||
message,
|
message,
|
||||||
return_message,
|
return_message,
|
||||||
parse_mode="MarkdownV2",
|
parse_mode="HTML",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user