def send_news(self, fakeid, msgid):
url = '<STR_LIT>'<EOL>payload = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:f>': '<STR_LIT>',<EOL>'<STR_LIT>': fakeid,<EOL>'<STR_LIT:type>': <NUM_LIT:10>,<EOL>'<STR_LIT>': self.__token,<EOL>'<STR_LIT>': msgid,<EOL>'<STR_LIT>': msgid,<EOL>'<STR_LIT:error>': '<STR_LIT:false>',<EOL>'<STR_LIT>': <NUM_LIT:1>,<EOL>'<STR_LIT>': random.random(),<EOL>}<EOL>headers = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'.format(<EOL>fakeid=fakeid,<EOL>),<EOL>'<STR_LIT>': self.__cookies,<EOL>}<EOL>r = requests.post(url, data=payload, headers=headers)<EOL>try:<EOL><INDENT>message = json.loads(r.text)<EOL><DEDENT>except ValueError:<EOL><INDENT>raise NeedLoginError(r.text)<EOL><DEDENT>try:<EOL><INDENT>if message['<STR_LIT>']['<STR_LIT>'] == <NUM_LIT> or message['<STR_LIT>']['<STR_LIT>'] == -<NUM_LIT>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if message['<STR_LIT>']['<STR_LIT>'] == <NUM_LIT>:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>if message['<STR_LIT>']['<STR_LIT>'] != <NUM_LIT:0>:<EOL><INDENT>raise NeedLoginError(r.text)<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>raise NeedLoginError(r.text)<EOL><DEDENT>
向指定用户发送图文消息 （必须从图文库里选取消息ID传入)
:param fakeid: 用户的 UID (即 fakeid)
:param msgid: 图文消息 ID
:raises NeedLoginError: 操作未执行成功, 需要再次尝试登录, 异常内容为服务器返回的错误数据
:raises ValueError: 参数出错, 具体内容有 ``fake id not exist`` 及 ``message id not exist``