Added ability to export accounts to json
This commit is contained in:
@ -3,9 +3,9 @@ import functools
|
||||
import mariadb
|
||||
import telebot
|
||||
|
||||
from . import handlers
|
||||
from . import handlers, utils
|
||||
|
||||
__all__ = ["handlers"]
|
||||
__all__ = ["handlers", "utils"]
|
||||
|
||||
|
||||
def create_bot(token: str, engine: mariadb.Connection) -> telebot.TeleBot:
|
||||
@ -40,4 +40,7 @@ def create_bot(token: str, engine: mariadb.Connection) -> telebot.TeleBot:
|
||||
bot.register_message_handler(
|
||||
functools.partial(handlers.cancel, bot), commands=["cancel"]
|
||||
)
|
||||
bot.register_message_handler(
|
||||
functools.partial(handlers.export, bot, engine), commands=["export"]
|
||||
)
|
||||
return bot
|
||||
|
Reference in New Issue
Block a user