|
|
|
@ -71,7 +71,7 @@ class TelegramBotWebHook { |
|
|
|
} else if (req.method === 'POST') { |
|
|
|
} else if (req.method === 'POST') { |
|
|
|
req |
|
|
|
req |
|
|
|
.pipe(bl(this._parseBody)) |
|
|
|
.pipe(bl(this._parseBody)) |
|
|
|
.on('end', () => res.end('OK')); |
|
|
|
.on('finish', () => res.end('OK')); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// Authorized but not a POST
|
|
|
|
// Authorized but not a POST
|
|
|
|
debug('WebHook request isn\'t a POST'); |
|
|
|
debug('WebHook request isn\'t a POST'); |
|
|
|
|