mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Added more error statuses
This commit is contained in:
parent
3083db69ef
commit
3814a49128
@ -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…
x
Reference in New Issue
Block a user