Added help command

This commit is contained in:
StNicolay
2022-10-14 20:16:46 +03:00
parent b5aebdb101
commit cfd2a24e25
2 changed files with 15 additions and 0 deletions

View File

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