switch Flask to FastAPI for future async.

This commit is contained in:
Rykov7
2023-10-28 18:14:44 +03:00
parent 33387e895b
commit 65e04a36e0
4 changed files with 8 additions and 14 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import re
import logging
import telebot.types
from flask import Flask
from fastapi import FastAPI
from telebot import TeleBot, logger, types
from dotenv import load_dotenv
@@ -29,7 +29,7 @@ bot = TeleBot(
)
LOG_TEXT = "[%s] %s: %s"
LOG_COMM = "[%s] [%s] %s: %s"
app = Flask(__name__)
app = FastAPI(docs=None, redoc_url=None)
DATA = "data/chat"