Added ability to delete account of a user

This commit is contained in:
StNicolay
2022-10-14 20:01:05 +03:00
parent b1017082a9
commit 267e54bb29
3 changed files with 31 additions and 3 deletions

View File

@ -31,4 +31,8 @@ def create_bot(token: str, engine: mariadb.Connection) -> telebot.TeleBot:
functools.partial(handlers.reset_master_pass, bot, engine),
commands=["reset_master_pass"],
)
bot.register_message_handler(
functools.partial(handlers.delete_account, bot, engine),
commands=["delete_account"],
)
return bot