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;