China hasn't been at war since the 70s. That's a fact.
China, as a part of the U.N., has been taking part in the Mali war. Here is an article from 2016 in which officials address this fact.
China now has more than 2,400 peacekeepers in Mali and other African countries, she said, adding that the country would continue to positively contribute to U.N. peacekeeping missions to help ensure peace and stability in Africa.
it's pretty much literally the official line now https://www.whitehouse.gov/articles/2025/03/president-trump-is-leading-with-peace-through-strength/