Notification Service¶
- async bot.handlers.notifications.service.check_new_analyses(bot)[source]¶
Background task to check for new analyses and send instant notifications.
- Parameters:
bot (
Bot
) – Aiogram bot instance.- Return type:
- Returns:
None
.
- async bot.handlers.notifications.service.get_target_chat_id(user_id)[source]¶
Return group chat ID if configured, otherwise personal user ID.
- async bot.handlers.notifications.service.process_completed_task(bot, task)[source]¶
Process a completed task and send appropriate notifications.
- async bot.handlers.notifications.service.send_analysis_report(bot, user_id, analysis_id)[source]¶
Send a structured Telegram report for a particular analysis to the target chat.