Added more error statuses
This commit is contained in:
parent
3083db69ef
commit
3814a49128
1 changed files with 2 additions and 1 deletions
|
@ -145,11 +145,12 @@ module.exports = (bot) => {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
const errMsg = Strings.ytDownload.uploadErr.replace("{error}", error)
|
||||||
await ctx.telegram.editMessageText(
|
await ctx.telegram.editMessageText(
|
||||||
ctx.chat.id,
|
ctx.chat.id,
|
||||||
downloadingMessage.message_id,
|
downloadingMessage.message_id,
|
||||||
null,
|
null,
|
||||||
Strings.ytDownload.uploadErr, {
|
errMsg, {
|
||||||
parse_mode: 'Markdown',
|
parse_mode: 'Markdown',
|
||||||
reply_to_message_id: ctx.message.message_id,
|
reply_to_message_id: ctx.message.message_id,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue