<commit_before>'use strict';

// Utils
const { link } = require('../../utils/tg');

// Bot
const { replyOptions } = require('../../bot/options');

// DB
const { getAdmins } = require('../../stores/user');

const reportHandler = async ctx => {
	const msg = ctx.message;
	if (!msg.reply_to_message) {
		return ctx.reply('ℹ️ <b>Reply to message you\'d like to report</b>',
			replyOptions);
	}
	const admins = await getAdmins();
	const adminObjects = admins.map(user => ({
		first_name: '⭐️', // small hack to be able to use link function
		id: user.user_id,
	}));
	const stars = adminObjects.map(link).join('');
	const s = `📋 ${link(ctx.from)} <b>reported the message to admins:</b> ` +<commit_msg>[Bugfix] adapt /report to changed schema<commit_after>'use strict';

// Utils
const { link } = require('../../utils/tg');

// Bot
const { replyOptions } = require('../../bot/options');

// DB
const { getAdmins } = require('../../stores/user');

const reportHandler = async ctx => {
	const msg = ctx.message;
	if (!msg.reply_to_message) {
		return ctx.reply('ℹ️ <b>Reply to message you\'d like to report</b>',
			replyOptions);
	}
	const admins = await getAdmins();
	const adminObjects = admins.map(user => ({
		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> ` +
{'fraction_non_alphanumeric': 0.19731258840169733, 'fraction_numerical': 0.0, 'mean_word_length': 3.5207667731629395, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '745396', 'n_tokens_mistral': 501, 'n_tokens_neox': 496, 'n_words': 135}