2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 21:07:39 +00:00

Fix ES6 syntax errors

This commit is contained in:
GochoMugo 2016-10-11 01:01:11 +03:00
parent 75b36abfeb
commit 0ed1efedfb
No known key found for this signature in database
GPG Key ID: 7B6A01CB57AA39E4

View File

@ -45,7 +45,7 @@ class TelegramBotWebHook {
}
// pipe+parse body
_parseBody = (err, body) => {
_parseBody(err, body) {
if (err) {
return debug(err);
}
@ -59,7 +59,7 @@ class TelegramBotWebHook {
}
// bound req listener
_requestListener = (req, res) => {
_requestListener(req, res) {
debug('WebHook request URL:', req.url);
debug('WebHook request headers: %j', req.headers);