Facing a divided Congress, President Donald Trump on Tuesday called on Washington to govern "not as two parties, but as one nation" — a message that clashed with the rancorous atmosphere in the nation's capital after the longest government shutdown in history.

Trump, who has spent two years leveling fiercely personal attacks on his Democratic rivals, declared that it was time "to bridge old divisions, heal old wounds, build new coalitions, forge new solutions and unlock the extraordinary promise of America's future."

Several Massachusetts politicians attending the speech in Washington tweeted their reactions to the president's annual address.

Sen. Elizabeth Warren, known for her frequent Twitter battles with Trump, wrote an hour before the speech began that the border wall, or "his monument to hate," will not be funded by Mexico, American taxpayers, or Puerto Rican disaster victims, and that "This ugliness has gone on long enough."

A few representatives took on the role of fact-checking the president themselves. Rep. Ayanna Pressley emphasized that "Seeking asylum is legal," in response to the president's remarks about undocumented immigrants crossing the southern border.

Rep. Seth Moulton tweeted, "#FactCheck: President Trump hasn’t put forward a single jobs bill," and later pointed out that childhood cancers, which Trump called to end in his speech, "are pre-existing conditions. The president and his party have voted over and over again to take us back to a time where cancer survivors could be denied affordable health insurance."

Rep. Jim McGovern refuted Trump's claim that there is a crisis at the southern U.S.-Mexico border, and later wrote that "trade policies have been a disaster for small businesses & farmers across America."

Sen. Ed Markey called for action on climate change, and wrote that "any infrastructure bill MUST confront climate change. We have a once-in-a-generation opportunity to literally rebuild America and pave the way for an efficient, resilient, vibrant future."

Rep. Joe Kennedy III tweeted that Trump's "real record wasn’t on that teleprompter tonight. It is etched in the experiences of the people he has scapegoated, excluded, targeted and ignored over the past two years."

Rep. Richard Neal wrote after the speech that he was "dismayed at the lack of any kind of bipartisanship during the first two years of President Trump's presidency."

Dozens of women Democrats, including some from Massachusetts, wore white to the address, a symbol of women's suffrage.

The Associated Press contributed to this article.