mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-22 09:57:10 +00:00
Fix catch error while file not able download (#737)
This commit is contained in:
parent
d853a18079
commit
7643551adc
@ -1587,6 +1587,9 @@ class TelegramBot extends EventEmitter {
|
||||
return resolve(filePath);
|
||||
});
|
||||
});
|
||||
fileStream.on('error', (err) => {
|
||||
reject(err);
|
||||
});
|
||||
return promise;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user