mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 05:17:41 +00:00
Fix request performance issue (PR #193)
This commit is contained in:
parent
75d940c473
commit
d4a5f5d16c
@ -177,6 +177,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
options.url = this._buildURL(_path);
|
options.url = this._buildURL(_path);
|
||||||
options.simple = false;
|
options.simple = false;
|
||||||
options.resolveWithFullResponse = true;
|
options.resolveWithFullResponse = true;
|
||||||
|
options.forever = true;
|
||||||
debug('HTTP request: %j', options);
|
debug('HTTP request: %j', options);
|
||||||
return request(options)
|
return request(options)
|
||||||
.then(resp => {
|
.then(resp => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user