{"action":"created","issue":{"url":"https://api.github.com/repos/littlecodersh/ItChat/issues/27","repository_url":"https://api.github.com/repos/littlecodersh/ItChat","labels_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/27/comments","events_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/27/events","html_url":"https://github.com/littlecodersh/ItChat/issues/27","id":163110736,"number":27,"title":"msg['isAt'] BUG？","user":{"login":"tylor-e","id":12898096,"avatar_url":"https://avatars.githubusercontent.com/u/12898096?v=3","gravatar_id":"","url":"https://api.github.com/users/tylor-e","html_url":"https://github.com/tylor-e","followers_url":"https://api.github.com/users/tylor-e/followers","following_url":"https://api.github.com/users/tylor-e/following{/other_user}","gists_url":"https://api.github.com/users/tylor-e/gists{/gist_id}","starred_url":"https://api.github.com/users/tylor-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylor-e/subscriptions","organizations_url":"https://api.github.com/users/tylor-e/orgs","repos_url":"https://api.github.com/users/tylor-e/repos","events_url":"https://api.github.com/users/tylor-e/events{/privacy}","received_events_url":"https://api.github.com/users/tylor-e/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-30T08:35:38Z","updated_at":"2016-06-30T09:03:28Z","closed_at":null,"body":"用了给的默认代码测试：\r\n\r\n@itchat.msg_register('Text', isGroupChat = True)\r\ndef text_reply(msg):\r\n    if msg['isAt']:\r\n        itchat.send(u'@%s\\u2005I received: %s'%(msg['ActualNickName'], msg['Content']), msg['FromUserName'])\r\n\r\n字面意思我理解的是当@本人的时候方才回复。实际用的时候不管有无@均报错\r\n\r\nTraceback (most recent call last):\r\n  File \"D:\\Py35\\itchat\\app.py\", line 34, in <module>\r\n    itchat.run()\r\n  File \"E:\\Python\\Python27\\Lib\\site-packages\\itchat-1.0.8-py2.7.egg\\itchat\\__init__.py\", line 167, in run\r\n  File \"E:\\Python\\Python27\\Lib\\site-packages\\itchat-1.0.8-py2.7.egg\\itchat\\__init__.py\", line 135, in configured_reply\r\n  File \"D:\\Py35\\itchat\\app.py\", line 30, in text_reply\r\n    if msg['isAt']:\r\nKeyError: 'isAt'\r\n\r\n运行环境，windows10/python3.5.2"},"comment":{"url":"https://api.github.com/repos/littlecodersh/ItChat/issues/comments/229603367","html_url":"https://github.com/littlecodersh/ItChat/issues/27#issuecomment-229603367","issue_url":"https://api.github.com/repos/littlecodersh/ItChat/issues/27","id":229603367,"user":{"login":"littlecodersh","id":13028340,"avatar_url":"https://avatars.githubusercontent.com/u/13028340?v=3","gravatar_id":"","url":"https://api.github.com/users/littlecodersh","html_url":"https://github.com/littlecodersh","followers_url":"https://api.github.com/users/littlecodersh/followers","following_url":"https://api.github.com/users/littlecodersh/following{/other_user}","gists_url":"https://api.github.com/users/littlecodersh/gists{/gist_id}","starred_url":"https://api.github.com/users/littlecodersh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littlecodersh/subscriptions","organizations_url":"https://api.github.com/users/littlecodersh/orgs","repos_url":"https://api.github.com/users/littlecodersh/repos","events_url":"https://api.github.com/users/littlecodersh/events{/privacy}","received_events_url":"https://api.github.com/users/littlecodersh/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T09:03:28Z","updated_at":"2016-06-30T09:03:28Z","body":"@tylor-e 试试这个命令：\r\n```bash\r\npip install itchat --no-cache-dir\r\n```"}}
{"actor":{"display_login":"littlecodersh"}}