Added conformation for deleting all, added cacel command for the case, when there is no active action
This commit is contained in:
@ -38,4 +38,7 @@ def create_bot(token: str, engine: mariadb.Connection) -> telebot.TeleBot:
|
||||
bot.register_message_handler(
|
||||
functools.partial(handlers.help, bot), commands=["help", "start"]
|
||||
)
|
||||
bot.register_message_handler(
|
||||
functools.partial(handlers.cancel, bot), commands=["cancel"]
|
||||
)
|
||||
return bot
|
||||
|
Reference in New Issue
Block a user