lily_website

πŸ“„ Notifications Service

⬅️ Back 🏠 Docs Root

The NotificationsService acts as the business logic layer for the notifications feature, coordinating between the Telegram bot, the Django backend, and the background workers.

πŸ› οΈ Core Responsibilities

Located in: src/telegram_bot/features/telegram/notifications/logic/service.py

1. confirm_appointment(appointment_id: int) -> dict

2. cancel_appointment(appointment_id: int, reason_code: str, reason_text: str) -> dict

3. process_notification(appointment_id: int, status: str, reason_text: str | None = None)

🧩 Key Design Decisions