2
0
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:
Igor 2020-05-11 21:29:29 -07:00 committed by GitHub
parent d853a18079
commit 7643551adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1587,6 +1587,9 @@ class TelegramBot extends EventEmitter {
return resolve(filePath);
});
});
fileStream.on('error', (err) => {
reject(err);
});
return promise;
}