a = ['список', 'команд']
@bot.message_handler(commands=['любая команда'])
def step(message):
for x in a:
if message.text == x:
bot.send_message(message.from_user.id, x)
if __name__ == "__main__":
bot.polling(none_stop=True)
@bot.message_handler(func=lambda m: True)
def echo_all(message):
bot.reply_to(message, message.text)