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
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