From cd86c934388c084e131e24f29cd293838958a366 Mon Sep 17 00:00:00 2001 From: Yago Date: Tue, 7 Jun 2016 00:16:45 +0200 Subject: [PATCH] Fixed processUpdate --- src/telegram.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram.js b/src/telegram.js index 0d95788..46f4048 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -67,7 +67,7 @@ class TelegramBot extends EventEmitter { this._polling = new TelegramBotPolling(this.token, this.options.polling, this.processUpdate); } - processUpdate(update) { + processUpdate = (update) => { debug('Process Update %j', update); const message = update.message; const inlineQuery = update.inline_query;