This commit is contained in:
2025-12-31 17:47:39 +08:00
38 changed files with 4435 additions and 1343 deletions

View File

@@ -56,10 +56,18 @@ async def log_bot_message(to_wxid: str, content: str, msg_type: str = "text", me
except Exception:
pass
sync_content = content
if msg_type == "image":
sync_content = "[图片]"
elif msg_type == "video":
sync_content = "[视频]"
elif msg_type == "file":
sync_content = "[文件]"
await store.add_group_message(
to_wxid,
bot_nickname,
content,
sync_content,
role="assistant",
sender_wxid=bot_wxid or None,
)