From 28e850be52f646608e7e517483fed4e3bf68b3ce Mon Sep 17 00:00:00 2001 From: Yago Date: Thu, 19 Nov 2015 14:23:57 +0100 Subject: [PATCH] Default timeout as 10 seconds --- src/telegramPolling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegramPolling.js b/src/telegramPolling.js index db6b3ed..dc7a100 100644 --- a/src/telegramPolling.js +++ b/src/telegramPolling.js @@ -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;