Spencer Platt/Getty ImagesPresident Donald Trump is attempting to pressure Iran into negotiating a new nuclear deal.

President Donald Trump rebuked Iran at the United Nations General Assembly and spent the day in a back and forth with the country’s leader, Hassan Rouhani.

Trump referred to Rouhani as a “lovely man” in a tweet on Tuesday.

He said, however, that there is no meeting on the horizon between the two countries.

President Donald Trump on Tuesday said he would not be meeting with Iranian President Hassan Rouhani as world leaders gather in New York for the United Nations General Assembly, or UNGA. But he also complimented the Iranian president and expressed a desire to meet “someday in the future.”

“Despite requests, I have no plans to meet Iranian President Hassan Rouhani,” Trump tweeted. “Maybe someday in the future. I am sure he is an absolutely lovely man!”

Despite requests, I have no plans to meet Iranian President Hassan Rouhani. Maybe someday in the future. I am sure he is an absolutely lovely man!

Rouhani responded to the president’s Tuesday tweet in an interview with CNN, suggesting Trump wasn’t being “genuine.”

“Instead of talking he should show genuine honesty and seriousness,” Rouhani said. Trump “has been looking to meet for two years now, but such meeting should happen when it furthers the interests of both people and both countries.”

Subsequently, as he arrived at the UN on Tuesday, Trump said that “Iran has to change its tune before I meet with them.”

“It will happen. I believe they have no choice,” he said.

TRUMP: "Iran has acted very badly. We are doing many things, including sanctions, that are very massive…Iran has to change its tune before I meet with them. They wanted me. I'm not meeting with them until they change their tune. It will happen. I believe they have no choice." pic.twitter.com/XMmAJxTFQ3

About two months ago, Trump was tweeting all caps threats to Rouhani

The president continued to go after Iran in remarks he delivered to the UNGA, but his earlier tweet marks a decidedly different tone than even a few weeks ago, when Trump issued strong warnings to Iran over its involvement in the conflict in Syria.

And a little over months ago, Rouhani and Trump were trading threats from across the globe.

“To Iranian President Rouhani: NEVER, EVER THREATEN THE UNITED STATES AGAIN OR YOU WILL SUFFER CONSEQUENCES THE LIKES OF WHICH FEW THROUGHOUT HISTORY HAVE EVER SUFFERED BEFORE.”

Rouhani took what many perceived to be veiled shots at Trump in his speech to the UNGA on Tuesday. The Iranian leader said it’s “unfortunate” there are world leaders who gain popular support by “fomenting extremist nationalism and racism.”

Iran President Rouhani at #UNGA: “It is unfortunate that we are witnessing rulers in the world ride public sentiments and gain popular support through the fomenting of extremist nationalism and racism and through xenophobic tendencies resembling a Nazi disposition” #tictocnewspic.twitter.com/VpCPFAPnpk

The deal, which was orchestrated by the Obama administration, is designed to prevent Tehran from obtaining a nuclear weapon by easing economic sanctions on Iran in exchange for a significant reduction in nuclear activities.

Trump has decried the deal for years, contending it didn’t do enough to deter Iran’s nuclear ambitions or its other nefarious activities around the world.

Economic sanctions Trump has leveled against Iran have helped cripple its economy, placing Tehran in a precarious position. The president has a strong advantage over Rouhani in this regard, which he alluded to in statements on Tuesday, but it doesn’t guarantee Iran will sit down at the negotiation table.