Merge branch 'main' of https://gitea.functen.cn/shihao/WechatHookBot
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user