mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-09 19:04:59 +03:00
- MessengerBinding/MessengerBindingCode: привязка сотрудника к боту по одноразовому коду (deep-link ?start= для TG и MAX, TTL 10 мин) - сервисный бот = messenger-интеграция с config.purpose=notifications, без канала продаж; worker поллит его отдельно (только коды привязки) - доставка через outbox: notify() -> notification_created -> handler разворачивает аудиторию и шлёт привязанным сотрудникам (best-effort) - API messenger-bindings (список/код/отвязка); профиль: карточка «Уведомления в мессенджер»; форма интеграций: флажок бота уведомлений Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
12 lines
368 B
Python
12 lines
368 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class NotificationsConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
label = "notifications"
|
|
name = "hub_platform.notifications"
|
|
verbose_name = "Notifications"
|
|
|
|
def ready(self) -> None:
|
|
from hub_platform.notifications import event_handlers # noqa: F401 (register outbox handlers)
|