mirror of
https://github.com/Llloooggg/TextSouls.git
synced 2026-03-06 04:26:23 +03:00
20 lines
414 B
Python
20 lines
414 B
Python
import json
|
|
|
|
from fastapi import FastAPI
|
|
|
|
from aiogram import Bot, Dispatcher
|
|
from aiogram.fsm.storage.memory import MemoryStorage
|
|
|
|
with open("textsouls/config.json") as config_file:
|
|
config_data = json.load(config_file)
|
|
|
|
app = FastAPI()
|
|
|
|
bot = Bot(token=config_data["MAIN_SETTINGS"]["BOT_TOKEN"])
|
|
dp = Dispatcher(storage=MemoryStorage())
|
|
|
|
|
|
@app.get("/")
|
|
async def root():
|
|
return {"message": "Hello World"}
|