From 5bb31e5c64189823979f71d51ae74dbd991f267f Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Mon, 23 Oct 2023 11:01:23 +0200 Subject: [PATCH] Prettier --- handlers/commands/report.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/handlers/commands/report.js b/handlers/commands/report.js index 5e52ce5..9b72f54 100644 --- a/handlers/commands/report.js +++ b/handlers/commands/report.js @@ -8,7 +8,7 @@ const { msgLink, scheduleDeletion, } = require('../../utils/tg'); -const { logError } = require('../../utils/log'); + const { chats = {} } = require('../../utils/config').config; const isQualified = member => member.status === 'creator' || @@ -47,7 +47,7 @@ const reportHandler = async ctx => { const reportMessage = parts.join(' '); let reportReason = '' if (reportMessage.trim() !== '') { - reportReason = `\nReport reason: ${reportMessage}` + reportReason = TgHtml.tag`\n\n\nReport reason: ${reportMessage}` } await ctx.deleteMessage(); @@ -55,7 +55,7 @@ const reportHandler = async ctx => { chats.report, TgHtml.tag`❗️ ${link(ctx.from)} reported a message from ${link(reply.from)} in ${ctx.chat.title}!${reportReason}`, + )}">a message from ${link(reply.from)} in ${ctx.chat.title}!${reportReason}`, { parse_mode: 'HTML', reply_to_message_id: msg.message_id,