{"action":"opened","issue":{"url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/423","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/423/labels{/name}","comments_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/423/comments","events_url":"https://api.github.com/repos/yagop/node-telegram-bot-api/issues/423/events","html_url":"https://github.com/yagop/node-telegram-bot-api/issues/423","id":258950236,"number":423,"title":"SyntaxError: missing ) after argument list, When using async","user":{"login":"saeedhei","id":25050762,"avatar_url":"https://avatars1.githubusercontent.com/u/25050762?v=4","gravatar_id":"","url":"https://api.github.com/users/saeedhei","html_url":"https://github.com/saeedhei","followers_url":"https://api.github.com/users/saeedhei/followers","following_url":"https://api.github.com/users/saeedhei/following{/other_user}","gists_url":"https://api.github.com/users/saeedhei/gists{/gist_id}","starred_url":"https://api.github.com/users/saeedhei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeedhei/subscriptions","organizations_url":"https://api.github.com/users/saeedhei/orgs","repos_url":"https://api.github.com/users/saeedhei/repos","events_url":"https://api.github.com/users/saeedhei/events{/privacy}","received_events_url":"https://api.github.com/users/saeedhei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-19T20:17:00Z","updated_at":"2017-09-19T20:17:00Z","closed_at":null,"author_association":"NONE","body":"Why am I getting this error When I use `async`?\r\nIs there any way to use async/await in node.js 6?\r\n\r\n**My Code:**\r\n\r\n    bot.onText(/\\/start/, async  msg => {\r\n      const opts = {\r\n        parse_mode: 'Markdown' ,\r\n        reply_markup: JSON.stringify({\r\n          keyboard: StartKeyboard,\r\n          resize_keyboard: true,\r\n          one_time_keyboard: true\r\n        })\r\n      };\r\n      await bot.sendMessage(msg.chat.id, 'Hi', opts);\r\n    });\r\n**Error:**\r\n\r\n    bot.onText(/\\/start/, async  msg => {\r\n                          ^^^^^\r\n    SyntaxError: missing ) after argument list\r\n\r\n\t\r\nI'm using node.js v6.11.0 with \"dependencies\": \r\n\r\n    { \"babel-polyfill\": \"^6.23.0\",\r\n      \"cheerio\": \"^1.0.0-rc.2\",\r\n      \"dotenv\": \"^4.0.0\",\r\n      \"firebase\": \"^4.1.2\",\r\n      \"firebase-admin\": \"^5.0.0\",\r\n      \"node-telegram-bot-api\": \"^0.27.1\",\r\n      \"request\": \"^2.81.0\" },"}}
{"actor":{"display_login":"saeedhei"}}