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

Merge branch 'brandly-patch-1'

This commit is contained in:
Yago 2015-11-19 14:14:51 +01:00
commit f9603c7e36

View File

@ -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;