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:
parent
f9603c7e36
commit
28e850be52
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user