2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +00:00

Fixed a couple of debug prints

This commit is contained in:
Ola Flisbäck 2016-07-13 19:52:50 +02:00
parent e0e5e9a7b0
commit 10af3e4f55
2 changed files with 3 additions and 3 deletions

View File

@ -99,10 +99,10 @@ class TelegramBot extends EventEmitter {
if (message.text) {
debug('Text message');
this.textRegexpCallbacks.forEach(reg => {
debug('Matching %s whith', message.text, reg.regexp);
debug('Matching %s with %s', message.text, reg.regexp);
const result = reg.regexp.exec(message.text);
if (result) {
debug('Matches', reg.regexp);
debug('Matches %s', reg.regexp);
reg.callback(message, result);
}
});

View File

@ -60,7 +60,7 @@ class TelegramBotWebHook {
// bound req listener
_requestListener = (req, res) => {
debug('WebHook request URL:', req.url);
debug('WebHook request URL: %s', req.url);
debug('WebHook request headers: %j', req.headers);
// If there isn't token on URL