Changed error handling on crew.js

This commit is contained in:
Luquinhas 2025-01-10 09:24:05 -03:00
parent a36e1825b9
commit 0af901a258
No known key found for this signature in database
GPG key ID: D9B075FC6DC93985
3 changed files with 4 additions and 4 deletions

View file

@ -159,12 +159,12 @@ module.exports = (bot) => {
caption: botFile
});
} catch (error) {
ctx.reply(Strings.fileError.replace('{error}', error.message), {
ctx.reply(Strings.varErr.replace('{error}', error.message), {
parse_mode: 'Markdown',
reply_to_message_id: ctx.message.message_id
});
}
}, '', Strings.fileError);
}, '', Strings.varErr);
});
bot.command('run', spamwatchMiddleware, async (ctx) => {