feat: add telegram group pricing and direct payments

This commit is contained in:
2569718930@qq.com
2026-05-18 16:18:26 +08:00
parent d99a3c25e9
commit 6041d25f23
18 changed files with 1479 additions and 35 deletions
+7 -1
View File
@@ -2,7 +2,8 @@
from fastapi import APIRouter, Request
from web.services.auth_api import get_auth_me_payload
from web.core import TelegramLoginRequest
from web.services.auth_api import get_auth_me_payload, login_with_telegram
router = APIRouter(tags=["auth"])
@@ -10,3 +11,8 @@ router = APIRouter(tags=["auth"])
@router.get("/api/auth/me")
async def auth_me(request: Request):
return get_auth_me_payload(request)
@router.post("/api/auth/telegram/login")
async def auth_telegram_login(request: Request, body: TelegramLoginRequest):
return login_with_telegram(request, body)