2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 13:47:54 +00:00

replaced stars with zero-width spaces, resolves #22

This commit is contained in:
Pouria Ezzati
2017-10-08 11:45:43 +03:30
parent d3b4248b10
commit 5314328ab6

View File

@@ -17,12 +17,12 @@ const reportHandler = async ctx => {
}
const admins = await getAdmins();
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,
}));
const stars = adminObjects.map(link).join('');
const s = `📋 ${link(ctx.from)} <b>reported the message to admins:</b> ` +
`${stars}`;
const adminsMention = adminObjects.map(link).join('');
const s = `❗️${link(ctx.from)} <b>reported the message to the admins.</b>` +
`${adminsMention}`;
return ctx.replyWithHTML(s, {
reply_to_message_id: msg.reply_to_message.message_id
});