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:
parent
0ed1efedfb
commit
2559f6d677
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user