Include yt-dlp on help

This commit is contained in:
Lucas Gabriel 2024-09-28 23:14:27 -03:00
parent 3aa22a6b90
commit 2067e21a34
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
4 changed files with 15 additions and 5 deletions

View file

@ -115,6 +115,8 @@ module.exports = (bot) => {
parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id,
});
fs.unlinkSync(mp4File);
}
}
} catch (error) {
@ -126,7 +128,7 @@ module.exports = (bot) => {
} else {
errStatus = error.error ? error.error.message : 'Unknown error';
}
const message = strings.ytDownloadErr
.replace("{err}", errStatus)
.replace("{userName}", ctx.from.first_name);