From e64ed7b33c82a619337b193b34bfd022a2a61979 Mon Sep 17 00:00:00 2001 From: Conbas Date: Tue, 9 May 2017 12:41:52 +0800 Subject: [PATCH] fix(readme): add an import of TEXT (#318) --- README.md | 2 +- README.rst | 2 +- README_EN.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d41ef481..665f9bed 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README.rst b/README.rst index 70a30772..47b6df45 100644 --- a/README.rst +++ b/README.rst @@ -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'] diff --git a/README_EN.md b/README_EN.md index 26babde9..208585c7 100644 --- a/README_EN.md +++ b/README_EN.md @@ -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']