Added /gen_password command

This commit is contained in:
2022-11-13 18:49:57 +03:00
parent 2c07b3bed2
commit 9ee51dc19f
2 changed files with 16 additions and 0 deletions

View File

@ -46,4 +46,7 @@ def create_bot(token: str, engine: Engine) -> telebot.TeleBot:
bot.register_message_handler(
functools.partial(handlers.import_accounts, bot, engine), commands=["import"]
)
bot.register_message_handler(
functools.partial(handlers.gen_password, bot), commands=["gen_password"]
)
return bot