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']