From 5b1bad75253d2005a5ca6e3a20e81ccd5829695e Mon Sep 17 00:00:00 2001 From: Yago Date: Mon, 11 Jan 2016 18:56:52 +0100 Subject: [PATCH] Fix foreach bug --- src/telegramPolling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegramPolling.js b/src/telegramPolling.js index e2c794d..2563e1c 100644 --- a/src/telegramPolling.js +++ b/src/telegramPolling.js @@ -36,7 +36,7 @@ TelegramBotPolling.prototype._polling = function () { debug('updated offset: %s', this.offset); } this.callback(update); - }); + }.bind(this)); }.bind(this)) .catch(function (err) { debug('polling error: %j', err);