Merge branch 'patch-1' of https://github.com/brandly/node-telegram-bot-api into brandly-patch-1

experimental
Yago 10 years ago
commit ab39b1d130
  1. 2
      src/telegramPolling.js

@ -17,7 +17,7 @@ var TelegramBotPolling = function (token, options, callback) {
this.token = token; this.token = token;
this.callback = callback; this.callback = callback;
this.timeout = options.timeout || 0; this.timeout = options.timeout || 0;
this.interval = options.interval || 300; this.interval = (typeof options.interval === 'number') ? options.interval : 300;
this.lastUpdate = 0; this.lastUpdate = 0;
this.lastRequest = null; this.lastRequest = null;
this.abort = false; this.abort = false;

Loading…
Cancel
Save