It was the other way around, Philip was trying to conquer Greece and he figured sending a threatening letter to Sparta might be enough, since at that point they were about powerless.
So the invasion was always planned and the courtesy of the answer didn't matter.