def cmd_help(bot, update):
chat_id = update.message.chat_id
logger.info('[%s] Sending help text.' % (chat_id))
text = "/help /start \n" + \
"/add <#pokedexID> \n" + \
"/add <#pokedexID1> <#pokedexID2> ... \n" + \
"/addbyrarity <#rarity> - With 1 uncommon to 5 ultrarare \n" + \
"/clear \n" + \
"/rem <#pokedexID> \n" + \
"/rem <#pokedexID1> <#pokedexID2> ... \n" + \
"Send <location> - Search a location \n" +\
"/location <s> - Send a location as text \n" +\
"/radius <m> - Search radius in m \n" +\
"/remloc - Clear location data\n" +\
"/list \n" + \
"/save \n" + \
"/load \n" + \
"/lang en"
bot.sendMessage(chat_id, text)
tmp = ''
for key in pokemon_name:
tmp += "%s, " % (key)
tmp = tmp[:-2]
bot.sendMessage(chat_id, text= '/lang [%s]' % (tmp))
评论列表
文章目录