|
|
@@ -102,6 +102,12 @@ async def _reply_checkin(message: Message, text: str) -> Message:
|
|
|
return response
|
|
|
|
|
|
|
|
|
+async def _reply_balance(message: Message, text: str) -> Message:
|
|
|
+ response = await message.reply_text(text, parse_mode=ParseMode.HTML)
|
|
|
+ schedule_group_cleanup(message, response)
|
|
|
+ return response
|
|
|
+
|
|
|
+
|
|
|
def _checkin_message(
|
|
|
template: str,
|
|
|
*,
|
|
|
@@ -149,12 +155,12 @@ def _adjustment_parts(message: Message) -> tuple[str | None, str | None, str]:
|
|
|
async def points_balance_command(_, message: Message):
|
|
|
target = await _resolve_target(message)
|
|
|
if not target:
|
|
|
- return await message.reply_text("未找到该成员。")
|
|
|
+ return await _reply_balance(message, "未找到该成员。")
|
|
|
account = await get_point_account(message.chat.id, target.id)
|
|
|
- return await message.reply_text(
|
|
|
+ return await _reply_balance(
|
|
|
+ message,
|
|
|
f"{_mention(target.id, target.first_name)} 当前有 "
|
|
|
f"<b>{int(account['balance'])}</b> 积分。",
|
|
|
- parse_mode=ParseMode.HTML,
|
|
|
)
|
|
|
|
|
|
|