Skip to content

Commit

Permalink
fix(conv): fix dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
brgman committed May 4, 2024
1 parent 73062f6 commit 8f58420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/utils/saveAndSendPhoto.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const saveAndSendConvertedDocument = async (

fs.writeFileSync(filePath, Buffer.from(buffer, 'binary'))
fs.renameSync(filePath, newPath)
const stream = fs.createReadStream(resFileName)
const stream = fs.createReadStream(newPath)

file = await bot.sendDocument(chatID, stream, {
// caption: createProgress(progress?.replace('%', ''))
Expand Down

0 comments on commit 8f58420

Please sign in to comment.