Iran's Foreign Ministry spokesman has urged Donald Trump to lay off threatening Tehran through Twitter, firing back at the US president's “insulting” posts.

“His confused and contradictory positions on Iranians are nothing new,” Bahram Ghasemi said in a statement Tuesday, as Trump was shooting off angry tweets, seemingly to all and sundry.

"Instead of wasting his time on posting useless and insulting tweets about other nations and countries, Trump had better address his country's domestic affairs and issues such as the daily killings of dozens of people in armed clashes and shootings in various US states as well as the existence of millions of homeless and hungry [people] in his own country.”

Read more

During his time as president, Trump has fired off multiple Twitter rants at Iran, and in October, decertified the nuclear deal reached with Tehran during the Obama presidency (although the agreement remains in place) and also imposed new sanctions. The US president has been vocal about the Iranian unrest over the past few days.

“The people of Iran are finally acting against the brutal and corrupt Iranian regime. All of the money that President Obama so foolishly gave them went into terrorism and into their ‘pockets,’” he wrote Tuesday, referring to the unfreezing of more than $100 billion in Iranian assets by the Obama administration as a result of the Joint Comprehensive Plan of Action (JCPOA) agreement.

“The people have little food, big inflation and no human rights. The US is watching!”

READ MORE: ‘US is watching!’: Trump warns Iran amid crackdown on protests (VIDEO)

The people of Iran are finally acting against the brutal and corrupt Iranian regime. All of the money that President Obama so foolishly gave them went into terrorism and into their “pockets.” The people have little food, big inflation and no human rights. The U.S. is watching! — Donald J. Trump (@realDonaldTrump) January 2, 2018

In earlier tweets, Trump referred to the country as the “Number One State of Sponsored Terror” and said its people were “hungry for food & for freedom.”

Trump’s tweets were already being criticized by Hamid Baeidinejad, Iran’s ambassador to the UK, who also highlighted the United States’ domestic problems.

“Trump after his earlier insult in calling the Iranian nation ‘terrorists,’ has now called Iranians as ‘hungry for food.’ Very bad to remind him that 1 out of 8, meaning 42 million people including 13 million children and 5 million seniors, are hungry in the US today,” the Iranian diplomat tweeted Monday.

Trump after his earlier insult in calling the Iranian nation as "terrorist", has now called Iranians as "hungry for food". Very bad to remind him that 1 out of 8 meaning 42 million people including 13 million children and 5 million seniors are hungry in the US today. — Hamid Baeidinejad (@baeidinejad) January 1, 2018

“More than 3 months after storm in Puerto Rico, half of the people still do not have access to electricity,” he added. “Mr. Trump should be encouraged to work harder to solve the American people's problems rather than focusing on problems of other nations.”

More than 3 months after storm in Puerto Rico, half of the people still do not have access to electricity. Mr. Trump should be encouraged to work harder to solve the American people's problems rather than focusing on problems of other nations. https://t.co/s0tjBdWwfe — Hamid Baeidinejad (@baeidinejad) January 1, 2018

On Twitter, there have been doubts in the Iranian officials' ability to stop Trump’s nimble fingers...

Good luck with that! Iranian Ministry of Foreign Affairs calls on Trump to stop the insulting tweets https://t.co/LgpcBoKYnx — Jake Rudnitsky (@Rudnit) January 2, 2018

... In the sincerety of Trump's tweets...

So Trump tweets some fake-sympathy tweets and all of a sudden everybody forgets how he’s the one coming up with the Muslim Ban and insisting on increasing the sanctions against Iran (which first and foremost affect the PEOPLE of Iran) ??! pic.twitter.com/EUwUgVvj6F — 2ndmoon© (@2ndmoon) December 31, 2017

... And in its ability to change attitudes.

24/ while we’re on Trump, the impact of his tweets has been marginal at best. They’ve triggered a slew of angry comments, packed with ridicule. Across classes, factions and generations in Iran, there is a shared contempt for #POTUS whose policies look erratic and hypocritical — Golnar Motevalli (@golnarM) December 31, 2017

At least 20 people have died and hundreds more arrested as pro and anti-government rallies have been raging across Iran since last week. The anti-government protests appears to be motivated by anger at corruption and economic hardships, while the authorities have also blamed external actors for the unrest.