{"action":"created","issue":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/102","repository_url":"https://api.github.com/repos/yagop/node-telegram-bot-api","labels_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/102/comments","events_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/102/events","html_url":"https://github.com/yagop/node-telegram-bot-api/pull/102","id":147624422,"number":102,"title":"Update for Telegram Bots 2.0","user":{"login":"tjhorner","id":2646487,"avatar_url":"https://avatars.githubusercontent.com/u/2646487?v=3","gravatar_id":"","url":"https://api.github.com/users/tjhorner","html_url":"https://github.com/tjhorner","followers_url":"https://api.github.com/users/tjhorner/followers","following_url":"https://api.github.com/users/tjhorner/following{/other_user}","gists_url":"https://api.github.com/users/tjhorner/gists{/gist_id}","starred_url":"https://api.github.com/users/tjhorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjhorner/subscriptions","organizations_url":"https://api.github.com/users/tjhorner/orgs","repos_url":"https://api.github.com/users/tjhorner/repos","events_url":"https://api.github.com/users/tjhorner/events{/privacy}","received_events_url":"https://api.github.com/users/tjhorner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-12T03:46:56Z","updated_at":"2016-04-14T01:24:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/pulls/102","html_url":"https://github.com/yagop/node-telegram-bot-api/pull/102","diff_url":"https://github.com/yagop/node-telegram-bot-api/pull/102.diff","patch_url":"https://github.com/yagop/node-telegram-bot-api/pull/102.patch"},"body":"# Telegram Bots 2.0!\r\n\r\nI've added the new methods from the updated Bots API in Telegram. This includes all of the methods for kicking/banning users as well.\r\n\r\nThe APIs for kicking and unbanning chat members don't seem to work right now because it says the bots must be admins in the groups, but there's no way to make bots admins in groups quite yet. (unless I'm missing something...)\r\n\r\n### Methods added\r\n\r\n- [`kickChatMember`](https://core.telegram.org/bots/api#kickchatmember)\r\n- [`unbanChatMember`](https://core.telegram.org/bots/api#unbanchatmember)\r\n- [`answerCallbackQuery`](https://core.telegram.org/bots/api#answercallbackquery)\r\n- [`editMessageText`](https://core.telegram.org/bots/api#editmessagetext)\r\n- [`editMessageCaption`](https://core.telegram.org/bots/api#editmessagecaption)\r\n- [`editMessageReplyMarkup`](https://core.telegram.org/bots/api#editmessagereplymarkup)"},"comment":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/comments/209713957","html_url":"https://github.com/yagop/node-telegram-bot-api/pull/102#issuecomment-209713957","issue_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/102","id":209713957,"user":{"login":"tim427","id":4570297,"avatar_url":"https://avatars.githubusercontent.com/u/4570297?v=3","gravatar_id":"","url":"https://api.github.com/users/tim427","html_url":"https://github.com/tim427","followers_url":"https://api.github.com/users/tim427/followers","following_url":"https://api.github.com/users/tim427/following{/other_user}","gists_url":"https://api.github.com/users/tim427/gists{/gist_id}","starred_url":"https://api.github.com/users/tim427/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim427/subscriptions","organizations_url":"https://api.github.com/users/tim427/orgs","repos_url":"https://api.github.com/users/tim427/repos","events_url":"https://api.github.com/users/tim427/events{/privacy}","received_events_url":"https://api.github.com/users/tim427/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T01:24:59Z","updated_at":"2016-04-14T01:24:59Z","body":"Hi @tjhorner ,\r\n\r\nI've tried your pull-request, but receive the following error;\r\n\r\n```\r\n/home/tim/telegram-bot/node_modules/node-telegram-bot-api/src/telegram.js:17\r\nclass TelegramBot extends EventEmitter {\r\n^^^^^\r\n\r\nSyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:373:25)\r\n    at Object.Module._extensions..js (module.js:416:10)\r\n    at Module.load (module.js:343:32)\r\n    at Function.Module._load (module.js:300:12)\r\n    at Module.require (module.js:353:17)\r\n    at require (internal/module.js:12:17)\r\n    at Object.<anonymous> (/home/tim/telegram-bot/node_modules/node-telegram-bot-api/index.js:1:80)\r\n    at Module._compile (module.js:409:26)\r\n    at Object.Module._extensions..js (module.js:416:10)\r\nerror: Forever detected script exited with code: 1\r\n```\r\n\r\nWhich node-version are you using?\r\n"}}