{"action":"closed","issue":{"url":"https://api.github.com/repos/Yoctol/bottender/issues/315","repository_url":"https://api.github.com/repos/Yoctol/bottender","labels_url":"https://api.github.com/repos/Yoctol/bottender/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/Yoctol/bottender/issues/315/comments","events_url":"https://api.github.com/repos/Yoctol/bottender/issues/315/events","html_url":"https://github.com/Yoctol/bottender/issues/315","id":343318491,"node_id":"MDU6SXNzdWUzNDMzMTg0OTE=","number":315,"title":"LINEBOT - Cannot read property 'message' of undefined","user":{"login":"wiasliaw77210","id":37038019,"node_id":"MDQ6VXNlcjM3MDM4MDE5","avatar_url":"https://avatars3.githubusercontent.com/u/37038019?v=4","gravatar_id":"","url":"https://api.github.com/users/wiasliaw77210","html_url":"https://github.com/wiasliaw77210","followers_url":"https://api.github.com/users/wiasliaw77210/followers","following_url":"https://api.github.com/users/wiasliaw77210/following{/other_user}","gists_url":"https://api.github.com/users/wiasliaw77210/gists{/gist_id}","starred_url":"https://api.github.com/users/wiasliaw77210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wiasliaw77210/subscriptions","organizations_url":"https://api.github.com/users/wiasliaw77210/orgs","repos_url":"https://api.github.com/users/wiasliaw77210/repos","events_url":"https://api.github.com/users/wiasliaw77210/events{/privacy}","received_events_url":"https://api.github.com/users/wiasliaw77210/received_events","type":"User","site_admin":false},"labels":[{"id":721214053,"node_id":"MDU6TGFiZWw3MjEyMTQwNTM=","url":"https://api.github.com/repos/Yoctol/bottender/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-07-21T11:00:21Z","updated_at":"2018-08-23T07:45:47Z","closed_at":"2018-08-23T07:45:47Z","author_association":"NONE","body":"Here is my code\r\n```\r\nconst JoinHandle = new LineHandler()\r\n\t.onEvent(async context=>{\r\n\t\tif(context.event.isFollow){\r\n\t\t\tasync context => {\r\n\t\t\t\tawait context.replyTemplate('this is a template', {\r\n\t\t\t\t\ttype: 'buttons',\r\n\t\t\t\t\ttitle: 'Menu',\r\n\t\t\t\t\ttext: 'Please select',\r\n\t\t\t\t\tactions: [\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttype: 'uri',\r\n\t\t\t\t\t\t\tlabel: 'Add to cart',\r\n\t      \t\t\t\t\t        data:'https://www.google.com/',\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\ttype: 'uri',\r\n\t\t\t\t\t\t\tlabel: 'Add to cart',\r\n\t      \t\t\t\t\t       data:'https://www.google.com/',\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t],\r\n\t\t\t\t});\r\n\t\t\t\tconsole.log(context.event);\r\n\t\t\t}\r\n\t\t}else if(context.event.isUnfollow){\r\n\t\t\tawait console.log(context.event);\r\n\t\t}else{\r\n\t\t\tawait console.log(context.event);\r\n\t\t}\r\n\t}).onUnhandled(async (context,err)=>{\r\n\t\tconsole.log(err.message);\r\n\t}).onError(async (context,err)=>{\r\n\t\tconsole.log(err.message);\r\n\t});\r\n```\r\nThe error message is just like title, I dont know why."}}
{"actor":{"display_login":"chentsulin"}}