2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-29 13:27:44 +00:00

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

This commit is contained in:
Yago 2015-11-19 14:14:37 +01:00
commit ab39b1d130

View File

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