def send_message(self, author, content):
if isinstance(author, Author) is False:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if not content:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if author.url == self.url:<EOL><INDENT>return False<EOL><DEDENT>data = {<EOL>'<STR_LIT>': author.hash_id,<EOL>'<STR_LIT:content>': content,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': author.xsrf<EOL>}<EOL>res = self._session.post(Send_Message_Url,<EOL>data=data)<EOL>return res.json()['<STR_LIT:r>'] == <NUM_LIT:0><EOL>
发送私信给一个用户

        :param Author author: 接收私信用户对象
        :param string content: 发送给用户的私信内容
        :return: 成功返回 True，失败返回 False
        :rtype: bool