Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Oct 23, 2023
1 parent d4db1d7 commit 5bb31e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handlers/commands/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ||
Expand Down Expand Up @@ -47,15 +47,15 @@ const reportHandler = async ctx => {
const reportMessage = parts.join(' ');
let reportReason = ''
if (reportMessage.trim() !== '') {
reportReason = `\nReport reason: ${reportMessage}`
reportReason = TgHtml.tag`\n\n\nReport reason: <i>${reportMessage}</i>`
}

await ctx.deleteMessage();
await ctx.telegram.sendMessage(
chats.report,
TgHtml.tag`❗️ ${link(ctx.from)} reported <a href="${msgLink(
reply,
)}">a message</a> from ${link(reply.from)} in ${ctx.chat.title}!<i>${reportReason}</i>`,
)}">a message</a> from ${link(reply.from)} in ${ctx.chat.title}!${reportReason}`,
{
parse_mode: 'HTML',
reply_to_message_id: msg.message_id,
Expand Down

0 comments on commit 5bb31e5

Please sign in to comment.