code: def send_message(self, fakeid, content):
          
          url = 'https://mp.weixin.qq.com/cgi-bin/singlesend?t=ajax-response'
          payload = {
              'tofakeid': fakeid,
              'type': 1,
              'token': self.__token,
              'content': content,
              'ajax': 1,
          }
          headers = {
              'x-requested-with': 'XMLHttpRequest',
              'referer': 'https://mp.weixin.qq.com/cgi-bin/singlesendpage?t=message/send&action=index&tofakeid={fakeid}&token={token}&lang=zh_CN'.format(
                  fakeid=fakeid,
                  token=self.__token,
              ),
              'cookie': self.__cookies,
          }
          r = requests.post(url, data=payload, headers=headers)
  
          try:
              message = json.loads(r.text)
          except ValueError:
              raise NeedLoginError(r.text)
          try:
              if message['base_resp']['ret'] == -21:
                  raise ValueError('fake id not exist')
              if message['base_resp']['ret'] != 0:
                  raise NeedLoginError(r.text)
          except KeyError:
              raise NeedLoginError(r.text)
docs: 主动发送文本消息
          :param fakeid: 用户的 UID (即 fakeid )
          :param content: 发送的内容
          :raises NeedLoginError: 操作未执行成功, 需要再次尝试登录, 异常内容为服务器返回的错误数据
          :raises ValueError: 参数出错, 具体内容有 ``fake id not exist``