address comment

This commit is contained in:
daobing zhu 2022-09-23 17:23:25 +08:00
parent cd51f463bc
commit cdaacf186b
2 changed files with 4 additions and 4 deletions

View File

@ -7,6 +7,9 @@ import time
import ntchat
import re
# 聊天记录通知
MT_RECV_CHAT_RECORDS_MSG = 11061
wechat = ntchat.WeChat()
# 要监听的wxids可以通过获取contact接口获取wxid也可以开启后从debug信息中看出来
@ -81,7 +84,7 @@ def update_wxid_in_xml(xml, from_wxid, target_wxid):
return patten.sub(target_wxid, xml)
@wechat.msg_register(ntchat.MT_RECV_CHAT_RECORDS_MSG)
@wechat.msg_register(MT_RECV_CHAT_RECORDS_MSG)
def on_recv_chat_record_msg(wechat_instance: ntchat.WeChat, message):
data = message["data"]
from_wxid = data["from_wxid"]

View File

@ -23,9 +23,6 @@ MT_RECV_TEXT_MSG = 11046
MT_RECV_IMAGE_MSG = 11047
MT_RECV_PICTURE_MSG = 11047
# 聊天记录通知
MT_RECV_CHAT_RECORDS_MSG = 11061
# 语音消息通知
MT_RECV_VOICE_MSG = 11048