From 67f8e5e34b74cb81315b3051c66faa5e8afa8eab Mon Sep 17 00:00:00 2001 From: Luquinhas Date: Fri, 10 Jan 2025 10:50:12 -0300 Subject: [PATCH] Changed the order just for better code visual --- src/commands/help.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/help.js b/src/commands/help.js index abdc963..c869847 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -5,6 +5,9 @@ const spamwatchMiddleware = require('../plugins/lib-spamwatch/Middleware.js')(is async function sendHelpMessage(ctx, isEditing) { const Strings = getStrings(ctx.from.language_code); const botInfo = await ctx.telegram.getMe(); + const helpText = Strings.botHelp + .replace('{botName}', botInfo.first_name) + .replace("{sourceLink}", `${process.env.botSource}`); const options = { parse_mode: 'Markdown', disable_web_page_preview: true, @@ -19,9 +22,6 @@ async function sendHelpMessage(ctx, isEditing) { ] } }; - const helpText = Strings.botHelp - .replace('{botName}', botInfo.first_name) - .replace("{sourceLink}", `${process.env.botSource}`); if (isEditing) { await ctx.editMessageText(helpText, options); } else {