2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-30 05:48:00 +00:00

Revert "Fix ES6 syntax errors"

This reverts commit 0ed1efedfb01fdf6948ebcdfccc41aa2e12915f3.
This commit is contained in:
Yago 2016-10-12 12:46:54 +02:00
parent 0ed1efedfb
commit 2559f6d677

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);