# =============================================================
# telegram_bot/urls.py — URL Maršruti
# =============================================================
# Šis fails tiek iekļauts core/urls.py ar:
#   path('webhook/', include('telegram_bot.urls')),
# =============================================================

from django.urls import path
from .views import telegram_webhook

urlpatterns = [
    # POST /webhook/telegram/<SECRET_TOKEN>/
    # <secret_token> — unikāls drošības tokens, tikai Telegram to zina
    path(
        "telegram/<str:secret_token>/",
        telegram_webhook,
        name="telegram_webhook",
    ),
]
