mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-31 22:25:15 +00:00
replaced stars with zero-width spaces, resolves #22
This commit is contained in:
@@ -17,12 +17,12 @@ const reportHandler = async ctx => {
|
|||||||
}
|
}
|
||||||
const admins = await getAdmins();
|
const admins = await getAdmins();
|
||||||
const adminObjects = admins.map(user => ({
|
const adminObjects = admins.map(user => ({
|
||||||
first_name: '⭐️', // small hack to be able to use link function
|
first_name: '', // small hack to be able to use link function
|
||||||
id: user.id,
|
id: user.id,
|
||||||
}));
|
}));
|
||||||
const stars = adminObjects.map(link).join('');
|
const adminsMention = adminObjects.map(link).join('');
|
||||||
const s = `📋 ${link(ctx.from)} <b>reported the message to admins:</b> ` +
|
const s = `❗️${link(ctx.from)} <b>reported the message to the admins.</b>` +
|
||||||
`${stars}`;
|
`${adminsMention}`;
|
||||||
return ctx.replyWithHTML(s, {
|
return ctx.replyWithHTML(s, {
|
||||||
reply_to_message_id: msg.reply_to_message.message_id
|
reply_to_message_id: msg.reply_to_message.message_id
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user