{"action":"created","issue":{"url":"https://api.github.com/repos/carpedm20/LINE/issues/19","labels_url":"https://api.github.com/repos/carpedm20/LINE/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/carpedm20/LINE/issues/19/comments","events_url":"https://api.github.com/repos/carpedm20/LINE/issues/19/events","html_url":"https://github.com/carpedm20/LINE/issues/19","id":58460819,"number":19,"title":"Cant reply message when the sender is line user who has no User ID.","user":{"login":"abcd476555","id":10855992,"avatar_url":"https://avatars.githubusercontent.com/u/10855992?v=3","gravatar_id":"","url":"https://api.github.com/users/abcd476555","html_url":"https://github.com/abcd476555","followers_url":"https://api.github.com/users/abcd476555/followers","following_url":"https://api.github.com/users/abcd476555/following{/other_user}","gists_url":"https://api.github.com/users/abcd476555/gists{/gist_id}","starred_url":"https://api.github.com/users/abcd476555/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abcd476555/subscriptions","organizations_url":"https://api.github.com/users/abcd476555/orgs","repos_url":"https://api.github.com/users/abcd476555/repos","events_url":"https://api.github.com/users/abcd476555/events{/privacy}","received_events_url":"https://api.github.com/users/abcd476555/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/carpedm20/LINE/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-21T14:20:18Z","updated_at":"2015-03-25T07:56:22Z","closed_at":null,"body":"Here is my code for reply message with the sender's name.\r\n\r\n\twhile True:\r\n\t\top_list = []\r\n\r\n\t\tfor op in client.longPoll():\r\n\t\t\tsender\t= op[0]\r\n\t\t\treceiver = op[1]\r\n\t\t\tmessage  = op[2]\r\n\r\n\t\t\tprint \"sender = %s\" % (sender)\r\n\t\t\tprint \"receiver = %s\" % (receiver)\r\n\t\t\tprint \"message.text = %s\" % (message.text)\r\n\r\n\t\t\tsender.sendMessage(\"[%s]: %s\" % (sender.name, message.text))\r\n\r\n\t\ttime.sleep(5);\r\n\r\nI test to my spare line accounts. The one with Line User ID is work perfectly, but error with another one that has no Line User ID like this\r\n\r\n\tsender = None\r\n\treceiver = <LineContact blankblankblank>\r\n\tmessage.text = test\r\n\tTraceback (most recent call last):\r\n\t\tFile \"hello.py\", line 32, in <module>\r\n\t\t\tsender.sendMessage(\"[%s]: %s\" % (sender.name, message.text))\r\n\tAttributeError: 'NoneType' object has no attribute 'sendMessage'"},"comment":{"url":"https://api.github.com/repos/carpedm20/LINE/issues/comments/85906248","html_url":"https://github.com/carpedm20/LINE/issues/19#issuecomment-85906248","issue_url":"https://api.github.com/repos/carpedm20/LINE/issues/19","id":85906248,"user":{"login":"carpedm20","id":3346407,"avatar_url":"https://avatars.githubusercontent.com/u/3346407?v=3","gravatar_id":"","url":"https://api.github.com/users/carpedm20","html_url":"https://github.com/carpedm20","followers_url":"https://api.github.com/users/carpedm20/followers","following_url":"https://api.github.com/users/carpedm20/following{/other_user}","gists_url":"https://api.github.com/users/carpedm20/gists{/gist_id}","starred_url":"https://api.github.com/users/carpedm20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carpedm20/subscriptions","organizations_url":"https://api.github.com/users/carpedm20/orgs","repos_url":"https://api.github.com/users/carpedm20/repos","events_url":"https://api.github.com/users/carpedm20/events{/privacy}","received_events_url":"https://api.github.com/users/carpedm20/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T07:56:22Z","updated_at":"2015-03-25T07:56:22Z","body":"I see... Thanks for your work :smile: "}}