Spaces:
Sleeping
Sleeping
| from fastapi import FastAPI | |
| from telegram_handlers import telegram_webhook, WebhookData | |
| from utils import dns_test, test_ai_response | |
| app = FastAPI() | |
| async def root(): | |
| return {"message": "Hadhramout Bank AI Backend is Live"} | |
| async def webhook(data: WebhookData): | |
| return await telegram_webhook(data) | |
| # @app.post("/test") | |
| # async def test(data: WebhookData): | |
| # return await test_webhook(data) | |
| async def dns(): | |
| return await dns_test() | |
| async def ai(): | |
| return await test_ai_response() |