Add Telegram webhook command entrypoint

This commit is contained in:
2569718930@qq.com
2026-06-14 06:32:58 +08:00
parent 450fa43e5d
commit 56f31c0aa2
5 changed files with 230 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
"""Telegram webhook routes."""
from fastapi import APIRouter, Request
from web.services.telegram_webhook import handle_telegram_webhook
router = APIRouter(tags=["telegram"])
@router.post("/api/telegram/webhook/{path_secret}")
async def telegram_webhook(path_secret: str, request: Request):
return await handle_telegram_webhook(path_secret, request)