| ⬅️ Back | 🏠 Docs Root |
The NotificationsOrchestrator handles all user interactions (callbacks) related to booking notifications in the Telegram admin channel.
Located in: src/telegram_bot/features/telegram/notifications/logic/orchestrator.py
handle_action(callback_data: NotificationsCallback, call: CallbackQuery) -> UnifiedViewDTOThe main dispatcher for incoming callbacks. It maps action codes to specific handler methods.
approve: Confirms the booking.reject: Opens the rejection reasons menu.reject_busy, reject_ill, etc.: Cancels the booking with a specific reason.cancel_reject: Returns to the main notification view.delete_notification: Deletes the message and cleans up history._handler_approve(context: QueryContext) -> UnifiedViewDTONotificationsService.confirm_appointment._reject_with_reason(context: QueryContext, reason_code: str, reason_text: str) -> UnifiedViewDTONotificationsService.cancel_appointment with the provided reason.handle_status_update(payload: dict[str, Any], current_text: str | None = None) -> UnifiedViewDTO | NoneAppointmentCache to reconstruct the full message text and update the delivery status icons (✅/❌).NotificationsService: Used for all business logic and API calls.NotificationsUI: Used for rendering the updated message content and keyboards.UnifiedViewDTO: The standard return type for all handlers, specifying how the bot should update the Telegram UI (edit, alert, delete).