Now commands ask for params in separate messages

This commit is contained in:
2022-10-30 00:31:51 +03:00
parent fae04547c8
commit dec7a9b7c9
2 changed files with 217 additions and 119 deletions

View File

@ -22,7 +22,7 @@ def create_bot(token: str, engine: mariadb.Connection) -> telebot.TeleBot:
functools.partial(handlers.get_accounts, bot, engine), commands=["get_accounts"]
)
bot.register_message_handler(
functools.partial(handlers.add_record, bot, engine), commands=["add_account"]
functools.partial(handlers.add_account, bot, engine), commands=["add_account"]
)
bot.register_message_handler(
functools.partial(handlers.delete_all, bot, engine), commands=["delete_all"]