Now commands ask for params in separate messages
This commit is contained in:
@ -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"]
|
||||
|
Reference in New Issue
Block a user