コード例 #1
0
 async def message_send_file(self, conversation_id: str,
                             file: FileBox) -> str:
     """
     send file message
     :param conversation_id:
     :param file:
     :return:
     """
     response = await self.puppet_stub.message_send_file(
         conversation_id=conversation_id, filebox=file.to_json_str())
     return response.id
コード例 #2
0
 async def message_send_file(self, conversation_id: str,
                             file: FileBox) -> str:
     """
     send file message
     :param conversation_id:
     :param file:
     :return:
     """
     if self.puppet_stub is None:
         raise Exception('puppet_stub should not be none')
     response = await self.puppet_stub.message_send_file(
         conversation_id=conversation_id, filebox=file.to_json_str())
     return response.id