mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Fixed bot update logic again
This commit is contained in:
parent
6ba348ed83
commit
aa0b4830e3
@ -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
|
||||
});
|
||||
|
@ -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}"
|
||||
}
|
@ -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}"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user