我们从Python开源项目中,提取了以下7个代码示例,用于说明如何使用itchat.send_raw_msg()。
def send_raw_msg(self, msgType, content, toUserName): ''' many messages are sent in a common way for demo .. code:: python @itchat.msg_register(itchat.content.CARD) def reply(msg): itchat.send_raw_msg(msg['MsgType'], msg['Content'], msg['FromUserName']) there are some little tricks here, you may discover them yourself but remember they are tricks it is defined in components/messages.py ''' raise NotImplementedError()
def search_mps(name=None, user_name=None): itchat.send_raw_msg return itchat.search_mps(name, user_name)
def send_raw_msg(msg_type, content, to_user_name): ''' many messages are sent in a common way for demo .. code:: python @itchat.msg_register(itchat.content.CARD) def reply(msg): itchat.send_raw_msg(msg['msg_type'], msg['Content'], msg['Fromuser_name']) there are some little tricks here, you may discover them yourself but remember they are tricks it is defined in components/messages.py ''' raise NotImplementedError()