From f8627b3629aa7592ab7059d9edb3f01fa6d960ef Mon Sep 17 00:00:00 2001 From: Vufer Date: Sun, 10 Nov 2024 01:43:03 +0300 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=20=D0=BA=D1=83=D0=BB?= =?UTF-8?q?=D0=B4=D0=B0=D1=83=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8f2927e..7c8c676 100644 --- a/index.js +++ b/index.js @@ -326,7 +326,7 @@ bot.on('message', async (msg) => { // Получаем количество оставшихся попыток const remainingAttempts = MAX_CALLS_PER_DAY - userUsage[userId].count; - +console.log(msg.reply_to_message) // Отправляем отформатированное сообщение с оставшимися попытками if (toxScore.firstTime) {await updateUserStats(msg.reply_to_message.from.id, msg.reply_to_message.from.username, msg.reply_to_message.from.firstName, toxScore, average);} // Обновляем статистику пользователя await bot.sendMessage(chatId, `Результаты анализа:\n${resultMessage}\n\nАнализов осталось: ${remainingAttempts}\n\nРекорд: ${stats.maxScore.toFixed(1)}`, { reply_to_message_id: msg.reply_to_message.message_id });