diff --git a/src/telegram.js b/src/telegram.js index c83aaa1..3b51349 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -101,10 +101,10 @@ class TelegramBot extends EventEmitter { if (message.text) { debug('Text message'); this.textRegexpCallbacks.some(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); // returning truthy value exits .some return this.options.onlyFirstMatch; diff --git a/src/telegramWebHook.js b/src/telegramWebHook.js index 19c209d..9239481 100644 --- a/src/telegramWebHook.js +++ b/src/telegramWebHook.js @@ -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