Based on some feedback received by an user, the API for hiding commands from /help is not that great. Currently you need to define a normal command and then append the name of the command to the bot.hide_commands list. This works, but it would be nicer to hide the command directly from its declaration, like so:
@bot.command("hello", hidden=True)defhello_command(chat, message, args):
passCurrent way:
@bot.command("hello")defhello_command(chat, message, args):
passbot.hide_commands.append("hello")
Based on some feedback received by an user, the API for hiding commands from
/helpis not that great. Currently you need to define a normal command and then append the name of the command to thebot.hide_commandslist. This works, but it would be nicer to hide the command directly from its declaration, like so:Current way: