Skip to content

Commit

Permalink
Fix recall bug
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecodersh committed Jun 15, 2016
1 parent 31416a9 commit 684c731
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def download_files(msg):
def add_friend(msg):
itchat.add_friend(**msg['Text'])
itchat.get_contract()
itchat.send_msg(msg['RecommendInfo']['UserName'], 'Nice to meet you!')
itchat.send_msg('Nice to meet you!', msg['RecommendInfo']['UserName'])

@itchat.msg_register('Text', isGroupChat = True)
def text_reply(msg):
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def download_files(msg):
def add_friend(msg):
itchat.add_friend(**msg['Text'])
itchat.get_contract()
itchat.send_msg(msg['RecommendInfo']['UserName'], 'Nice to meet you!')
itchat.send_msg('Nice to meet you!', msg['RecommendInfo']['UserName'])

@itchat.msg_register('Text', isGroupChat = True)
def text_reply(msg):
Expand Down
2 changes: 1 addition & 1 deletion itchat/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def download_video(videoDir):
'Type': 'Note',
'Text': m['Content'],}
elif m['MsgType'] == 10002:
regx = r'[CDATA[(.+?)]]'
regx = r'\[CDATA\[(.+?)\]\]'
data = re.search(regx, m['Content'])
msg = {
'Type': 'Note',
Expand Down

0 comments on commit 684c731

Please sign in to comment.