tg-bot/tipbot/commands/help.py
2020-08-05 22:52:13 -07:00

13 lines
430 B
Python

from tipbot import commands
def help(update, context):
cmds = list()
for i in commands.all_commands:
pk = commands.all_commands[i]
if not pk.get('admin', False):
cmds.append('{example} - {help}'.format(
example=pk['example'],
help=pk['help']
))
update.message.reply_text('Here are the available commands for this bot:\n\n' + '\n\n'.join(cmds))