def webwxsendemoticon(self, user_id, media_id):
        """
        @brief      send image
        @param      user_id  String
        @param      media_id  String
        @return     Bool: whether operation succeed
        """
        url = self.wx_conf['API_webwxsendemoticon'] + \
            '?fun=sys&f=json&pass_ticket=%s' % self.pass_ticket
        clientMsgId = str(int(time.time() * 1000)) + \
            str(random.random())[:5].replace('.', '')
        data_json = {
            "BaseRequest": self.base_request,
            "Msg": {
                "Type": 47,
                "EmojiFlag": 2,
                "MediaId": media_id,
                "FromUserName": self.User['UserName'],
                "ToUserName": user_id,
                "LocalID": clientMsgId,
                "ClientMsgId": clientMsgId
            }
        }
        r = post(url, data_json)
        return dic['BaseResponse']['Ret'] == 0

        @brief      send image
        @param      user_id  String
        @param      media_id  String
        @return     Bool: whether operation succeed
        
wxbot_project_py2.7/wechat/wechat_apis.py