diff --git a/VERSION b/VERSION
index 27593c8..469f283 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.16.1
+4.16.2
diff --git a/play-life-backend/admin.html b/play-life-backend/admin.html
index 799c82e..320a8c9 100644
--- a/play-life-backend/admin.html
+++ b/play-life-backend/admin.html
@@ -210,36 +210,6 @@
-
-
-
- 📨 Message Post
-
-
-
-
-
-
-
-
-
-
- 📈 Daily Report Trigger
-
-
-
- Нажмите кнопку для отправки ежедневного отчёта по Score и Целям в Telegram (обычно отправляется автоматически в 23:59).
-
-
-
-
-
@@ -347,46 +317,6 @@
resultEl.appendChild(div);
}
- async function sendMessage() {
- const text = document.getElementById('messageText').value.trim();
- if (!text) {
- alert('Пожалуйста, введите сообщение');
- return;
- }
-
- showStatus('messageStatus', 'loading', 'Отправка...');
- showResult('messageResult', null, false, true);
-
- try {
- const response = await fetch(`${getApiUrl()}/message/post`, {
- method: 'POST',
- headers: getAuthHeaders(),
- body: JSON.stringify({
- body: {
- text: text
- }
- })
- });
-
- if (handleAuthError(response)) {
- return;
- }
-
- const data = await response.json();
-
- if (response.ok) {
- showStatus('messageStatus', 'success', 'Успешно');
- showResult('messageResult', data, false);
- } else {
- showStatus('messageStatus', 'error', 'Ошибка');
- showResult('messageResult', data, true);
- }
- } catch (error) {
- showStatus('messageStatus', 'error', 'Ошибка');
- showResult('messageResult', { error: error.message }, true);
- }
- }
-
async function setupWeeklyGoals() {
showStatus('goalsStatus', 'loading', 'Обновление...');
showResult('goalsResult', null, false, true);
@@ -416,41 +346,6 @@
}
}
- async function triggerDailyReport() {
- showStatus('dailyReportStatus', 'loading', 'Отправка...');
- showResult('dailyReportResult', null, false, true);
-
- try {
- const response = await fetch(`${getApiUrl()}/daily-report/trigger`, {
- method: 'POST',
- headers: getAuthHeaders()
- });
-
- if (handleAuthError(response)) {
- return;
- }
-
- const data = await response.json();
-
- if (response.ok) {
- showStatus('dailyReportStatus', 'success', 'Успешно');
- showResult('dailyReportResult', data, false);
- } else {
- showStatus('dailyReportStatus', 'error', 'Ошибка');
- showResult('dailyReportResult', data, true);
- }
- } catch (error) {
- showStatus('dailyReportStatus', 'error', 'Ошибка');
- showResult('dailyReportResult', { error: error.message }, true);
- }
- }
-
- // Разрешаем отправку формы по Enter (Ctrl+Enter для textarea)
- document.getElementById('messageText').addEventListener('keydown', function(e) {
- if (e.ctrlKey && e.key === 'Enter') {
- sendMessage();
- }
- });