In his first message to Trump since the former president secured a second term, Xi said "history has shown that China and the United States benefit from cooperation and suffer from confrontation", state broadcaster CCTV said.