President Trump faced a backlash online and from lawmakers on both sides of the aisle Tuesday for congratulating China on the 70th anniversary of Communist rule.

“Congratulations to President Xi and the Chinese people on the 70th Anniversary of the People’s Republic of China!” the president said in a tweet that was slammed for ignoring decades of human rights abuses in the country.

Trump has generally spoken favorably about Xi, though relations between the two nations have deteriorated since he took office and has launched a trade war with Beijing.

His shoutout came amid violent pro-democracy protests in Hong Kong, where an 18-year-old was hit in the chest by a live round fired by police in the Chinese territory.

House Republican Conference chairwoman Liz Cheney of Wyoming released a statement pointing to China’s oppressive governing tactics, according to the Washington Post.

“This is not a day for celebration,” she said in a joint statement with Rep. Mike Gallagher (R-Wis.).

The US will use the occasion to “rededicate ourselves to ensuring that the Chinese Communist Party is left on the ash heap of history,” they added.

Sen. Ben Sasse (R-Neb.) also issued a statement that contrasted sharply with the president’s message.

“Today Chinese tyrants celebrated 70 years of communist oppression with their typically brutal symbolism: by sending a police officer to shoot a pro-democracy protester at point-blank range,” Sasse said.

“The freedom-seekers in Hong Kong mourn this anniversary, and the American people stand with them against those who deny their God-given dignity.”

In a statement, Sen. Tom Cotton (R-Ark.) said: “From the Great Leap Forward to the Cultural Revolution to the camps in Xinjiang today, it has been a ghoulish 70 years of Chinese Communist Party control.”

And Rep. Chip Roy (R-Texas), a Trump ally, tweeted a terse “I will pass” in response to the president’s wishes.

On Twitter, Trump’s followers also didn’t hold back in calling him out.

“Don’t forget to send timely salutations to the other loves of your life, Vladimir Putin, Kim Jong-un, Rodrigo Duterte, and Jair Bolsonaro!” Karen Walz wrote.

User Michael Lebowitz wrote: “Are you kidding me. Congratulations to a nation that has killed more people than Hitler and Stalin in the effort to uphold communism. They are morally corrupt and certainly not deserving of congratulations.”

“Mr. President, I regret to point out you are literally congratulating your greatest enemy, the biggest threat to the US: you are congratulating the CCP,” @WBYeats1865 tweeted.

“Today the CCP just showed off their missiles capable of striking Taiwan, Japan, Guam, and USA soil, and they said it PROUDLY!” he added, referring to the Chinese display of military might on Tuesday.

And another user, Jim Clarke, said: “Never thought I see the day a US President celebrates the anniversary of communism!”