Added ability to import accounts

This commit is contained in:
2022-11-01 10:32:42 +03:00
parent dbf27d401e
commit fb850e3737
3 changed files with 89 additions and 2 deletions

View File

@ -43,4 +43,7 @@ def create_bot(token: str, engine: mariadb.Connection) -> telebot.TeleBot:
bot.register_message_handler(
functools.partial(handlers.export, bot, engine), commands=["export"]
)
bot.register_message_handler(
functools.partial(handlers.import_accounts, bot, engine), commands=["import"]
)
return bot