mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-25 03:18:31 +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);
|
return resolve(filePath);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
fileStream.on('error', (err) => {
|
||||||
|
reject(err);
|
||||||
|
});
|
||||||
return promise;
|
return promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user