Added conformation for deleting all, added cacel command for the case, when there is no active action

This commit is contained in:
2022-10-30 16:24:32 +03:00
parent 731893ad33
commit 88d51785ed
2 changed files with 33 additions and 8 deletions

View File

@ -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