Fixed bot update logic again

This commit is contained in:
Lucas Gabriel 2024-09-28 23:22:25 -03:00
parent 6ba348ed83
commit aa0b4830e3
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985
3 changed files with 4 additions and 4 deletions

View File

@ -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
});

View File

@ -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}"
}

View File

@ -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}"
}