customer_service / main.py
codeBOKER's picture
Remove /test
b5fd72b
raw
history blame contribute delete
583 Bytes
from fastapi import FastAPI
from telegram_handlers import telegram_webhook, WebhookData
from utils import dns_test, test_ai_response
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hadhramout Bank AI Backend is Live"}
@app.post("/webhook")
async def webhook(data: WebhookData):
return await telegram_webhook(data)
# @app.post("/test")
# async def test(data: WebhookData):
# return await test_webhook(data)
@app.get("/dns-test")
async def dns():
return await dns_test()
@app.get("/ai-test")
async def ai():
return await test_ai_response()