Speaker Paul Ryan Paul Davis RyanKenosha will be a good bellwether in 2020 At indoor rally, Pence says election runs through Wisconsin Juan Williams: Breaking down the debates MORE (R-Wis.) roasted President Trump Donald John TrumpBiden leads Trump by 36 points nationally among Latinos: poll Trump dismisses climate change role in fires, says Newsom needs to manage forest better Jimmy Kimmel hits Trump for rallies while hosting Emmy Awards MORE at the annual Al Smith dinner in New York on Thursday night, joking about how he copes with the president's use of Twitter.

"Every morning, I wake up in my office and scroll Twitter to see which tweets I will have to pretend that I didn't see later," Ryan told the dinner's attendees.

"I know last year at this dinner Donald Trump offended some people with his comments, which critics said went too far," Ryan said, referring to the 2016 charity event the month before the election where Trump got booed for his sharp-edged jokes about Democratic rival Hillary Clinton Hillary Diane Rodham ClintonBiden leads Trump by 36 points nationally among Latinos: poll Democratic super PAC to hit Trump in battleground states over coronavirus deaths Battle lines drawn on precedent in Supreme Court fight MORE.

"Some said it was unbecoming of a public figure and that his comments were offensive," Ryan continued. "Well, thank God he's learned his lesson."

ADVERTISEMENT

The dinner, which was named for former New York Gov. Alfred E. Smith (D), the first Catholic nominee for president, is a white tie fundraiser for Catholic charities.

The event has become a friendly meeting ground for presidential candidates, who often take light-hearted jabs at one another.

However, last year's dinner during the tumultuous 2016 presidential campaign got tense, with Trump and Clinton taking aim at one another.

"Hillary accidentally bumped into me and she very civilly said: ‘Pardon me,'" Trump said.

"And I very politely replied, ‘Let me talk to you about that after I get into office,’” Trump said, referring to his threat to prosecute Clinton over her use of private email as secretary of State.

Clinton in turn hit Trump on his past remarks on women, saying, "People look at the Statue of Liberty and they see a proud symbol of our history as a nation of immigrants. A beacon of hope for people around the world. Donald looks at the Statue of Liberty and sees a four. Maybe a five if she loses the torch and tablet and changes her hair."