def send_emot(to, emot):
    """
    @brief      send emotion to user or gourp
    @param      to: String, user id or group id
    @param      emot: String, emotion file name
    """
    emot_path = os.path.join(app.config['UPLOAD_FOLDER'], emot)
    return jsonify({'ret': 0 if wechat.send_emot(to, emot_path) else 1})

    @brief      send emotion to user or gourp
    @param      to: String, user id or group id
    @param      emot: String, emotion file name
    
wxbot_project_py2.7/weixin_bot.py