Hellbot / server.py
Ufoptg's picture
Upload 93 files
78b07ad verified
raw
history blame
638 Bytes
import uvicorn
import os
import requests
import json
import base64
import re
import logging
from typing import Union
from base64 import b64decode
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.responses import FileResponse
logging.basicConfig(level=logging.ERROR)
app = FastAPI(
title="HellBot",
version="1.0.2",
contact={
"name": "πŸŒ€ΚŠΚ„βŠ•Φ„πŸŒ€",
"url": "https://t.me/UFoPinfo",
},
docs_url=None, redoc_url="/"
)
@app.get("/")
def HellBot():
return {"message": "running"}
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=7860)