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:
parent
75b36abfeb
commit
0ed1efedfb
@ -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