Fix request performance issue (PR #193)

experimental
Plusb Preco 9 years ago committed by Gocho Mugo
parent 75d940c473
commit d4a5f5d16c
  1. 1
      src/telegram.js

@ -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…
Cancel
Save