去除私聊时向主url发送消息的功能

This commit is contained in:
2025-11-03 10:21:26 +08:00
parent d88edc31fc
commit 6e63b361e4

View File

@@ -346,8 +346,10 @@ async def handle_talk_command(command: str, chat_id: int, user_id: int) -> str:
)
if success:
return f"✅ 私聊消息已发送给「{target_username}」!"
# 私聊消息发送成功不向主URL发送提示消息
return ""
else:
# 发送失败时仍然需要提示用户
return f"❌ 发送私聊消息失败,请稍后重试。"
except Exception as e: