def help(self, bot, update):
icon = emojize(":information_source: ", use_aliases=True)
text = icon + " The following commands are available:\n"
commands = [["/new", "Create new alarm"],
["/list", "List alarms, enable/disable and remove alarms"],
["/stop", "Stop all alarms"],
["/timezone", "Set the timezone (only works if sudo requires no password)"],
["/test", "Play an alarm to test"],
["/time", "Print time and timezone on device"],
["/help", "Get this message"]
]
for command in commands:
text += command[0] + " " + command[1] + "\n"
bot.send_message(chat_id=update.message.chat_id, text=text)
评论列表
文章目录