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