Skip to content

Commit

Permalink
src/telegram: Add request options in getFileStream (#771)
Browse files Browse the repository at this point in the history
Here it's request unable to use proxy options
  • Loading branch information
zhangpanyi authored May 12, 2020
1 parent 1ca5e2b commit b4309cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/telegram.js
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ class TelegramBot extends EventEmitter {
fileStream.emit('info', {
uri: fileURI,
});
pump(streamedRequest({ uri: fileURI }), fileStream);
pump(streamedRequest(Object.assign({ uri: fileURI }, this.options.request)), fileStream);
})
.catch((error) => {
fileStream.emit('error', error);
Expand Down

0 comments on commit b4309cf

Please sign in to comment.