From 6ba348ed83e3f6fad99e756466f6a528a354350f Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Date: Sat, 28 Sep 2024 23:19:05 -0300 Subject: [PATCH] Updated bot update logic --- commands/crew.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/crew.js b/commands/crew.js index 91a739a..5fa0f2a 100644 --- a/commands/crew.js +++ b/commands/crew.js @@ -107,11 +107,11 @@ module.exports = (bot) => { const Strings = getStrings(ctx.from.language_code); handleAdminCommand(ctx, async () => { try { - await ctx.reply(Strings.botUpdated, { + const updateMessage = await updateBot(); + await ctx.reply(Strings.botUpdated.replace('{updateMessage}', updateMessage), { parse_mode: 'Markdown', reply_to_message_id: ctx.message.message_id }); - updateBot(); } catch (error) { ctx.reply(Strings.errorUpdatingBot.replace('{error}', error), { parse_mode: 'Markdown',