From aa0b4830e3bc1486cb0277739023c35ca7f7ee44 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Date: Sat, 28 Sep 2024 23:22:25 -0300 Subject: [PATCH] Fixed bot update logic again --- commands/crew.js | 4 ++-- locales/english.json | 2 +- locales/portuguese.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/crew.js b/commands/crew.js index 5fa0f2a..9a91c30 100644 --- a/commands/crew.js +++ b/commands/crew.js @@ -107,8 +107,8 @@ module.exports = (bot) => { const Strings = getStrings(ctx.from.language_code); handleAdminCommand(ctx, async () => { try { - const updateMessage = await updateBot(); - await ctx.reply(Strings.botUpdated.replace('{updateMessage}', updateMessage), { + const result = await updateBot(); + await ctx.reply(Strings.botUpdated.replace('{result}', result), { parse_mode: 'Markdown', reply_to_message_id: ctx.message.message_id }); diff --git a/locales/english.json b/locales/english.json index ab9e003..878d955 100644 --- a/locales/english.json +++ b/locales/english.json @@ -67,6 +67,6 @@ "ytUploadLimit": "*This video exceeds the 50 MB upload limit imposed by Telegram on our bot. Please try another video. We're doing our best to increase this limit.*", "ytUploadLimit2": "*This video had its quality reduced because it exceeded the 50MB limit for uploads imposed by Telegram.*", "fileError": "Error uploading file", - "botUpdated": "Bot updated with success.", + "botUpdated": "Bot updated with success.\n\n{result}", "errorUpdatingBot": "Error updating bot\n\n{error}" } \ No newline at end of file diff --git a/locales/portuguese.json b/locales/portuguese.json index 3843f2a..1f593c9 100644 --- a/locales/portuguese.json +++ b/locales/portuguese.json @@ -67,6 +67,6 @@ "ytUploadLimit": "*Este vídeo excede o limite de carregamento de 50 MB imposto pelo Telegram ao nosso bot. Por favor, tente outro vídeo. Estamos fazendo o possível para aumentar esse limite.*", "ytUploadLimit2": "*Esse vídeo teve a qualidade reduzida por estar excedendo o limite de 50MB para uploads imposto pelo Telegram.*", "fileError": "Erro ao enviar o arquivo", - "botUpdated": "Bot atualizado com sucesso.", + "botUpdated": "Bot atualizado com sucesso.\n\n{result}", "errorUpdatingBot": "Erro ao atualizar o bot\n\n{error}" } \ No newline at end of file