mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-28 21:07:39 +00:00
src/telegram: Add request options in getFileStream (#771)
Here it's request unable to use proxy options
This commit is contained in:
parent
1ca5e2b967
commit
b4309cf45a
@ -1551,7 +1551,7 @@ class TelegramBot extends EventEmitter {
|
|||||||
fileStream.emit('info', {
|
fileStream.emit('info', {
|
||||||
uri: fileURI,
|
uri: fileURI,
|
||||||
});
|
});
|
||||||
pump(streamedRequest({ uri: fileURI }), fileStream);
|
pump(streamedRequest(Object.assign({ uri: fileURI }, this.options.request)), fileStream);
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
fileStream.emit('error', error);
|
fileStream.emit('error', error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user