Skip to content

Commit 4e886d8

Browse files
committed
过滤掉在电脑端发送的消息
1 parent 6aa92c1 commit 4e886d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wechatrobot/WeChatRobot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def receive_callback(self , msg):
7070

7171
msg['type'] = type_dict.get(msg['type'] , 'unhandled')
7272

73-
if 1 == msg["isSendMsg"]:
73+
if 1 == msg["isSendMsg"] and 1 == msg["isSendByPhone"]:
7474
Bus.emit("self_msg", msg)
7575
elif "chatroom" in msg["sender"]:
7676
Bus.emit("group_msg", msg)

0 commit comments

Comments
 (0)