2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +00:00

Default timeout as 10 seconds

This commit is contained in:
Yago 2015-11-19 14:23:57 +01:00
parent f9603c7e36
commit 28e850be52

View File

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