2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 21:07:39 +00:00

Fix request performance issue (PR #193)

This commit is contained in:
Plusb Preco 2016-11-21 18:10:18 +09:00 committed by Gocho Mugo
parent 75d940c473
commit d4a5f5d16c

View File

@ -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 => {