Add error status to uploadErr

This commit is contained in:
Luquinhas 2025-01-10 14:25:44 -03:00
parent b465ba29dd
commit 3083db69ef
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
3 changed files with 4 additions and 3 deletions

View file

@ -177,11 +177,12 @@ module.exports = (bot) => {
}
} catch (error) {
console.error(error);
const errMsg = Strings.ytDownload.uploadErr.replace("{error}", error)
await ctx.telegram.editMessageText(
ctx.chat.id,
downloadingMessage.message_id,
null,
Strings.ytDownload.uploadErr, {
errMsg, {
parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id,
},