Skip to content

Commit

Permalink
Update messages.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chase535 authored Aug 18, 2022
1 parent 64f251b commit 3000eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeChatPush/itchat/components/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def produce_msg(core, msgList):
# by default we think there may be a user missing not a mp
m['User'].core = core
msg = {'ChatRoom': '0', 'NotifyCloseContact': '0'}
if m.getr(m.get('FromUserName')) == 'weixin':
if str(m.get('FromUserName')) == 'weixin':
msg['Name'] = msg['NickName'] = '微信团队'
elif '@@' in str(m.get('FromUserName')) or '@@' in str(m.get('ToUserName')):
msg['ChatRoom'] = '1'
Expand Down

0 comments on commit 3000eb5

Please sign in to comment.