{"action":"created","issue":{"url":"https://api.github.com/repos/lukefx/hubot-telegram/issues/46","repository_url":"https://api.github.com/repos/lukefx/hubot-telegram","labels_url":"https://api.github.com/repos/lukefx/hubot-telegram/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/lukefx/hubot-telegram/issues/46/comments","events_url":"https://api.github.com/repos/lukefx/hubot-telegram/issues/46/events","html_url":"https://github.com/lukefx/hubot-telegram/issues/46","id":146112064,"number":46,"title":"ERROR TypeError: Cannot read property 'message_id' of undefined","user":{"login":"ishankhare07","id":7482025,"avatar_url":"https://avatars.githubusercontent.com/u/7482025?v=3","gravatar_id":"","url":"https://api.github.com/users/ishankhare07","html_url":"https://github.com/ishankhare07","followers_url":"https://api.github.com/users/ishankhare07/followers","following_url":"https://api.github.com/users/ishankhare07/following{/other_user}","gists_url":"https://api.github.com/users/ishankhare07/gists{/gist_id}","starred_url":"https://api.github.com/users/ishankhare07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishankhare07/subscriptions","organizations_url":"https://api.github.com/users/ishankhare07/orgs","repos_url":"https://api.github.com/users/ishankhare07/repos","events_url":"https://api.github.com/users/ishankhare07/events{/privacy}","received_events_url":"https://api.github.com/users/ishankhare07/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-04-05T21:38:15Z","updated_at":"2016-05-31T21:09:37Z","closed_at":null,"body":"This happens when i try to call my bot using `@` syntax in a group\r\nwhile it works fine for direct chat with bot\r\n\r\neg. `mybot help` -> works great in direct chat with the bot\r\n`@mybot_username help` -> sucks in group chat\r\n\r\n```\r\nERROR TypeError: Cannot read property 'message_id' of undefined\r\n2016-04-05T21:35:09.531315+00:00 app[web.1]:   at Telegram.handleUpdate (/app/node_modules/hubot-telegram/src/telegram.coffee:176:28, <js>:217:64)\r\n2016-04-05T21:35:09.531316+00:00 app[web.1]:   at Function.<anonymous> (/app/node_modules/hubot-telegram/src/telegram.coffee:251:29, <js>:288:36)\r\n2016-04-05T21:35:09.531317+00:00 app[web.1]:   at Request._callback (/app/node_modules/hubot-telegram/node_modules/telegrambot/lib/telegrambot.js:51:12)\r\n2016-04-05T21:35:09.531318+00:00 app[web.1]:   at Request.self.callback (/app/node_modules/hubot-telegram/node_modules/telegrambot/node_modules/request/request.js:200:22)\r\n2016-04-05T21:35:09.531319+00:00 app[web.1]:   at Request.emit (events.js:98:17)\r\n2016-04-05T21:35:09.531320+00:00 app[web.1]:   at Request.<anonymous> (/app/node_modules/hubot-telegram/node_modules/telegrambot/node_modules/request/request.js:1041:10)\r\n2016-04-05T21:35:09.531320+00:00 app[web.1]:   at Request.emit (events.js:117:20)\r\n2016-04-05T21:35:09.531321+00:00 app[web.1]:   at IncomingMessage.<anonymous> (/app/node_modules/hubot-telegram/node_modules/telegrambot/node_modules/request/request.js:968:12)\r\n2016-04-05T21:35:09.531322+00:00 app[web.1]:   at IncomingMessage.emit (events.js:117:20)\r\n2016-04-05T21:35:09.531323+00:00 app[web.1]:   at _stream_readable.js:944:16\r\n2016-04-05T21:35:09.531324+00:00 app[web.1]:   at process._tickCallback (node.js:458:13)\r\n```"},"comment":{"url":"https://api.github.com/repos/lukefx/hubot-telegram/issues/comments/222821488","html_url":"https://github.com/lukefx/hubot-telegram/issues/46#issuecomment-222821488","issue_url":"https://api.github.com/repos/lukefx/hubot-telegram/issues/46","id":222821488,"user":{"login":"EarlyEgg","id":12573598,"avatar_url":"https://avatars.githubusercontent.com/u/12573598?v=3","gravatar_id":"","url":"https://api.github.com/users/EarlyEgg","html_url":"https://github.com/EarlyEgg","followers_url":"https://api.github.com/users/EarlyEgg/followers","following_url":"https://api.github.com/users/EarlyEgg/following{/other_user}","gists_url":"https://api.github.com/users/EarlyEgg/gists{/gist_id}","starred_url":"https://api.github.com/users/EarlyEgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EarlyEgg/subscriptions","organizations_url":"https://api.github.com/users/EarlyEgg/orgs","repos_url":"https://api.github.com/users/EarlyEgg/repos","events_url":"https://api.github.com/users/EarlyEgg/events{/privacy}","received_events_url":"https://api.github.com/users/EarlyEgg/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T21:09:37Z","updated_at":"2016-05-31T21:09:37Z","body":"FYI, i had a similar problem.\r\n`ERROR TypeError: Cannot read property 'hasOwnProperty' of undefined`\r\nIt turned out that msg.reply caused this and msg.send works fine.$"}}
{"actor":{"display_login":"EarlyEgg"}}