From d4a5f5d16c33e1f06c04f8e994a79c45f1010001 Mon Sep 17 00:00:00 2001 From: Plusb Preco Date: Mon, 21 Nov 2016 18:10:18 +0900 Subject: [PATCH] Fix request performance issue (PR #193) --- src/telegram.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/telegram.js b/src/telegram.js index 392792b..12c6614 100644 --- a/src/telegram.js +++ b/src/telegram.js @@ -177,6 +177,7 @@ class TelegramBot extends EventEmitter { options.url = this._buildURL(_path); options.simple = false; options.resolveWithFullResponse = true; + options.forever = true; debug('HTTP request: %j', options); return request(options) .then(resp => {