def webwxsendmsg(self, word, to='filehelper'):
        """
        @brief      send text message
        @param      word  String
        @param      to    User id
        @return     dic   Dict
        """
        url = self.wx_conf['API_webwxsendmsg'] + \
            '?pass_ticket=%s' % (self.pass_ticket)
        clientMsgId = str(int(time.time() * 1000)) + \
            str(random.random())[:5].replace('.', '')
        params = {
            'BaseRequest': self.base_request,
            'Msg': {
                "Type": 1,
                "Content": trans_coding(word),
                "FromUserName": self.User['UserName'],
                "ToUserName": to,
                "LocalID": clientMsgId,
                "ClientMsgId": clientMsgId
            }
        }
        dic = post(url, params)
        return dic

        @brief      send text message
        @param      word  String
        @param      to    User id
        @return     dic   Dict
        
wxbot_project_py2.7/wechat/wechat_apis.py