mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 05:17:41 +00:00
Fix ES6 syntax errors
This commit is contained in:
parent
75b36abfeb
commit
0ed1efedfb
@ -45,7 +45,7 @@ class TelegramBotWebHook {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// pipe+parse body
|
// pipe+parse body
|
||||||
_parseBody = (err, body) => {
|
_parseBody(err, body) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return debug(err);
|
return debug(err);
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ class TelegramBotWebHook {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// bound req listener
|
// bound req listener
|
||||||
_requestListener = (req, res) => {
|
_requestListener(req, res) {
|
||||||
debug('WebHook request URL:', req.url);
|
debug('WebHook request URL:', req.url);
|
||||||
debug('WebHook request headers: %j', req.headers);
|
debug('WebHook request headers: %j', req.headers);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user