Skip to content

Commit

Permalink
fix(readme): add an import of TEXT (littlecodersh#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtr109 authored and littlecodersh committed May 9, 2017
1 parent c8ef672 commit e64ed7b
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 @@ -207,7 +207,7 @@ import itchat
newInstance = itchat.new_instance()
newInstance.auto_login(hotReload=True, statusStorageDir='newInstance.pkl')

@newInstance.msg_register(TEXT)
@newInstance.msg_register(itchat.content.TEXT)
def reply(msg):
return msg.text

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ You may use the following commands to open multi instance.
newInstance = itchat.new_instance()
newInstance.auto_login(hotReload=True, statusStorageDir='newInstance.pkl')
@newInstance.msg_register(TEXT)
@newInstance.msg_register(itchat.content.TEXT)
def reply(msg):
return msg['Text']
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ import itchat
newInstance = itchat.new_instance()
newInstance.auto_login(hotReload=True, statusStorageDir='newInstance.pkl')

@newInstance.msg_register(TEXT)
@newInstance.msg_register(itchat.content.TEXT)
def reply(msg):
return msg['Text']

Expand Down

0 comments on commit e64ed7b

Please sign in to comment.