def add_file_to_media_folder(self, desired_name: str, data: bytes) -> str: return self._run_command( pb.BackendInput(add_media_file=pb.AddMediaFileIn( desired_name=desired_name, data=data))).add_media_file
def add_media_file(self, *, desired_name: str, data: bytes) -> str: input = pb.AddMediaFileIn(desired_name=desired_name, data=data) output = pb.String() output.ParseFromString(self._run_command(17, input)) return output.val