mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2025-05-23 05:16:07 +08:00
address comment
This commit is contained in:
parent
cd51f463bc
commit
cdaacf186b
|
@ -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"]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user