mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
修复bot自己给别人发消息时没有PushContent字段导致判断错误,并修复bot自己发消息自己回复问题
This commit is contained in:
@@ -67,7 +67,7 @@ class GewechatMessageConverter(adapter.MessageConverter):
|
||||
if message["Data"]["MsgType"] == 1:
|
||||
# 检查消息开头,如果有 wxid_sbitaz0mt65n22:\n 则删掉
|
||||
regex = re.compile(r"^wxid_.*:")
|
||||
print(message)
|
||||
# print(message)
|
||||
|
||||
line_split = message["Data"]["Content"]["string"].split("\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user