Changed mariadb.Connection to Engine in __init__ of bot

This commit is contained in:
StNicolay 2022-11-04 02:16:47 +03:00
parent 042ca9312e
commit b4bf9fbf41

View File

@ -1,6 +1,6 @@
import functools
import mariadb
from sqlalchemy.future import Engine
import telebot
from . import handlers, utils
@ -8,7 +8,7 @@ from . import handlers, utils
__all__ = ["handlers", "utils"]
def create_bot(token: str, engine: mariadb.Connection) -> telebot.TeleBot:
def create_bot(token: str, engine: Engine) -> telebot.TeleBot:
bot = telebot.TeleBot(token)
bot.register_message_handler(
functools.partial(handlers.set_master_password, bot, engine),