Spaces:
Sleeping
Sleeping
Remove /test
Browse files
main.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
-
from telegram_handlers import telegram_webhook,
|
| 3 |
from utils import dns_test, test_ai_response
|
| 4 |
|
| 5 |
app = FastAPI()
|
|
@@ -12,9 +12,9 @@ async def root():
|
|
| 12 |
async def webhook(data: WebhookData):
|
| 13 |
return await telegram_webhook(data)
|
| 14 |
|
| 15 |
-
@app.post("/test")
|
| 16 |
-
async def test(data: WebhookData):
|
| 17 |
-
|
| 18 |
|
| 19 |
@app.get("/dns-test")
|
| 20 |
async def dns():
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
from telegram_handlers import telegram_webhook, WebhookData
|
| 3 |
from utils import dns_test, test_ai_response
|
| 4 |
|
| 5 |
app = FastAPI()
|
|
|
|
| 12 |
async def webhook(data: WebhookData):
|
| 13 |
return await telegram_webhook(data)
|
| 14 |
|
| 15 |
+
# @app.post("/test")
|
| 16 |
+
# async def test(data: WebhookData):
|
| 17 |
+
# return await test_webhook(data)
|
| 18 |
|
| 19 |
@app.get("/dns-test")
|
| 20 |
async def dns():
|