kucherenkovova 9 years ago committed by Gocho Mugo
parent 9a4298308e
commit 61e8f85368
  1. 2
      src/telegram.js

@ -1050,7 +1050,7 @@ class TelegramBot extends EventEmitter {
.then(fileURI => { .then(fileURI => {
const fileName = fileURI.slice(fileURI.lastIndexOf('/') + 1); const fileName = fileURI.slice(fileURI.lastIndexOf('/') + 1);
// TODO: Ensure fileName doesn't contains slashes // TODO: Ensure fileName doesn't contains slashes
const filePath = `${downloadDir}/${fileName}`; const filePath = path.join(downloadDir, fileName);
// properly handles errors and closes all streams // properly handles errors and closes all streams
return Promise return Promise

Loading…
Cancel
Save