Enhance TelegramNotifier to include channel names in notifications
ci / build-backend (push) Successful in 2m3s
ci / build-frontend (push) Successful in 42s
ci / tests (push) Successful in 1m26s
ci / sonar (push) Successful in 3m39s

Updated the TelegramNotifier to fetch channel names in a single database query, improving efficiency. Modified notification messages to include channel names for better clarity, ensuring users know where to switch for live content. Added tests to verify the inclusion of channel names in notifications and updated documentation to reflect these changes.
This commit is contained in:
Leonid Pershin
2026-08-01 09:49:32 +03:00
parent 3dbe0b7698
commit cbeee92d26
3 changed files with 71 additions and 5 deletions
+3
View File
@@ -43,6 +43,9 @@ NAT и через прокси, и это единственный вариан
в глазах зрителя, и четыре сообщения о ней читаются как спам.
- **Скоро в эфире** — за пять минут до следующей программы.
Оба называют канал: подписок у зрителя несколько, и «Сейчас в эфире» без названия не отвечает
на вопрос «где» — по такому сообщению непонятно, куда переключаться.
Граница разобранного (`TelegramSettings.NotifiedUntil`) двигается на каждом тике, даже когда
подписчиков нет: иначе первый же подписавшийся получил бы пачку сообщений про всё, что успело
пройти. Догон ограничен пятнадцатью минутами — после долгого простоя бот не станет пересказывать