Donald Trump is using his Twitter account to break the law, according to a free speech institute.

A prominent group has written to the present demanding that he stop blocking accounts and unblock those ones that have already done so. If he doesn't, he will be breaking the First Amendment of the US Constitution, the letter claims.

Mr Trump's personal account has recently taken to blocking a number of accounts that replied to his tweets with commentary that criticised, mocked or disagreed with his actions. Twitter users are unable to see or respond to tweets from accounts that block them.

The move was apparently an attempt to put a stop to the frequently embarrassing and critical tweets that appear under his regular postings.

In pictures: President Donald Trump on tour Show all 39 1 /39 In pictures: President Donald Trump on tour In pictures: President Donald Trump on tour 20 May 2017 US President Donald Trump and Saudi Arabia's King Salman bin Abdulaziz al-Saud arriving for a reception ahead of a banquet at Murabba Palace in Riyadh Getty Images In pictures: President Donald Trump on tour 20 May 2017 US President Donald Trump, accompanied by First Lady Melania Trump, and Saudi Arabia's King Salman bin Abdulaziz al-Saud being welcomed at Murabba Palace in Riyadh Getty Images In pictures: President Donald Trump on tour 20 May 2017 US President Donald J. Trump with King of Saudi Arabia Salman bin Abdulaziz Al Saud during a welcome ceremony with traditional sword dancers at Murabba Palace, in Riyadh, Saudi Arabia EPA In pictures: President Donald Trump on tour 20 May 2017 King of Saudi Arabia Salman bin Abdulaziz Al Saud with US President Donald J. Trump and wife Melania during a welcome ceremony at Murabba Palace, in Riyadh, Saudi Arabia EPA In pictures: President Donald Trump on tour 20 May 2017 US President Donald Trump adjusts the Collar of Abdulaziz Al Saud Medal, after it was bestowed upon him by Saudi Arabia's King Salman bin Abdulaziz Al Saud at the Royal Court in Riyadh, Saudi Arabia Reuters In pictures: President Donald Trump on tour 20 May 2017 Saudi Arabia's King Salman bin Abdulaziz Al Saud presents U.S. President Donald Trump with the Collar of Abdulaziz Al Saud Medal at the Royal Court in Riyadh, Saudi Arabia Reuters In pictures: President Donald Trump on tour 21 May 2017 Palestinians print posters depicting US President Donald Trump in preparations for his planned visit, in the West Bank town of Bethlehem Reuters In pictures: President Donald Trump on tour 21 May 2017 US President Donald Trump accompanied by first lady Melania Trump, his daughter Ivanka Trump and her husband White House senior advisor Jared Kushner, before delivering his remarks to the Arab Islamic American Summit in Riyadh, Saudi Arabia Reuters In pictures: President Donald Trump on tour 21 May 2017 US President Donald Trump looks on as U.S. Secretary of State Rex Tillerson and Saudi Arabia's Crown Prince Muhammad bin Nayef exchange a memorandum of understanding Reuters In pictures: President Donald Trump on tour 21 May 2017 First Lady Melania Trump shares a laugh with a child during a visit to the American International School in the Saudi capital Riyadh Getty Images In pictures: President Donald Trump on tour 21 May 2017 US President Donald Trump holds a bilateral meeting with Bahrain's King Hamad bin Isa Al Khalifa AP In pictures: President Donald Trump on tour 22 May 2017 Israeli soldiers rest during preparations ahead of President Trump's landing in Tel Aviv, Israel Getty Images In pictures: President Donald Trump on tour 22 May 2017 First Lady Melania Trump makes her way to board Air Force One in Riyadh as she heads with her husband the US President to Israel Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump and first lady Melania Trump board Air Force One for Israel, the next stop in Trump's international tour, at King Khalid International Airport AP In pictures: President Donald Trump on tour 22 May 2017 Israeli soldiers wait for the arrival ceremony of US President Donald Trump at Ben Gurion airport near Tel Aviv, Israel AP In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump and first lady Melania Trump arrive aboard Air Force One at Ben Gurion International Airport in Lod near Tel Aviv, Israel Reuters In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump and first lady Melania Trump disembark Air Force One on arrival at Ben Gurion International Airport AP In pictures: President Donald Trump on tour 22 May 2017 US President Donald J. Trump and his wife, US First Lady Melania Trump are welcomed by Israeli Prime Minister Benjamin Netanyahu upon arrival at Ben Gurion Airport, in Lod outside Tel Aviv, Israel EPA In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump and Israeli Prime Minister Benjamin Netanyahu sit during welcome ceremony in Tel Aviv AP In pictures: President Donald Trump on tour 22 May 2017 US First Lady Melania Trump chats wife Sara Netanyahu as US President Donald Trump chats to Israel's Prime Minister Benjamin Netanyahu during a welcoming ceremony to welcome Trump at Ben Gurion International Airport Reuters In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump delivers a speech upon his arrival at Ben Gurion International Airport in Tel Aviv Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump gestures during a press conference with Israel's President at the President's Residence in Jerusalem Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump watches as First Lady Melania Trump signs the guest book at the President's Residence in Jerusalem Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump walks with first lady Melania Trump in Jerusalem's Old City Reuters In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump visits the Western Wall, the holiest site where Jews can pray, in Jerusalems Old City Getty Images In pictures: President Donald Trump on tour 22 May 2017 US President Donald Trump stands next to Rabbi Shmuel Rabinowitz at the plaza in front of the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City Reuters In pictures: President Donald Trump on tour 22 May 2017 US Secretary of State Rex Tillerson and White House senior advisor Jared Kushner leave notes at the Western Wall in Jerusalem Reuters In pictures: President Donald Trump on tour 22 May 2017 US First Lady Melania Trump touches the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City EPA In pictures: President Donald Trump on tour 22 May 2017 Ivanka Trump, assistant and daughter of US President Donald J. Trump, touches the Western Wall, Judaism's holiest prayer site, in Jerusalem's Old City EPA In pictures: President Donald Trump on tour 22 May 2017 President Donald Trump visits the Western Wall AP In pictures: President Donald Trump on tour 24 May 2017 US President Donald J. Trump arrives in a vehicle to Saint Damaso's Court for a private audience with Pope Francis in Vatican City EPA In pictures: President Donald Trump on tour 24 May 2017 Pope Francis walks past Ivanka Trump and First Lady Melania Trump on the occasion of the private audience with President Donald Trump, at the Vatican AP In pictures: President Donald Trump on tour 24 May 2017 Pope Francis exchanges gifts with US President Donald Trump during a private audience at the Vatican Getty Images In pictures: President Donald Trump on tour 24 May 2017 Pope Francis meets US President Donald Trump and his wife Melania during a private audience at the Vatican Reuters In pictures: President Donald Trump on tour 24 May 2017 Pope Francis with US President Donald J. Trump EPA In pictures: President Donald Trump on tour 24 May 2017 Pope Francis gets into is car after meeting with US President Donald Trump AP In pictures: President Donald Trump on tour 24 May 2017 President Donald Trump and his wife Melania look at the frescoed ceilings during their visit to the Sistine Chapel at the Vatican L'Osservatore Romano/Pool Photo via AP In pictures: President Donald Trump on tour 24 May 2017 US President Donald Trump security vehicles are seen in front of Air Force One before take off from Leonardo da Vinci-Fiumicino Airport in Rome, Italy Reuters In pictures: President Donald Trump on tour 24 May 2017 US President Donald Trump and First Lady Melania Trump wave to reporters before boarding the Air Force One to Brussels, at the end of a 2-day visit to Italy including a meeting with Pope Francis at the Vatican, at Rome's Fiumicino international airport AP

The Knight First Amendment Institute at Columbia University in New York said in its letter that the blocking suppressed speech in a public forum protected by the Constitution.

The White House did not respond to a request for comment. Twitter said it had no comment.

Alex Abdo, the institute's senior staff attorney, likened Twitter to a modern form of town hall meeting or public comment periods for government agency proposals, both venues where US law requires even-handed treatment of speech.

Eric Goldman, a Santa Clara University law professor who focuses on internet law, said that previous cases involving politicians blocking users on Facebook supported the Knight Institute's position.

If the institute should sue, Trump could claim his @realDonaldTrump account is for personal use and separate from his official duties as president, Goldman said. But he called that defense “laughable.”

Trump also has a presidential @POTUS Twitter account. The Knight Institute said its arguments would apply with “equal force” to both accounts.

Trump's Twitter use has drawn intense media attention for his unvarnished commentary about his agenda and attacks on critics. His tweets are often retweeted tens of thousands of times, and can shape the news cycle.

Legal experts have said his tweets may directly affect policy. A chain of postings about his travel ban may hamper his administration's defence in courts.

The letter said Trump or his aides blocked the accounts @AynRandPaulRyan and @joepabike, belonging to songwriter Holly O'Reilly and professional cyclist and author Joseph M. Papp, respectively.

O'Reilly was blocked on 28 May after posting a brief animated clip of Pope Francis appearing uncomfortable during a meeting with Trump with a caption, “this is pretty much how the whole world sees you,” the letter said.

Donald Trump's first 100 days: in cartoons Show all 33 1 /33 Donald Trump's first 100 days: in cartoons Donald Trump's first 100 days: in cartoons Donald Trump's first 100 days in office were marred by a string of scandals, many of which caught the eye of the Independent's cartoonists Donald Trump's first 100 days: in cartoons Trump's first 100 days have seen him aggressively ramp up tensions with his nuclear rivals in North Korea Donald Trump's first 100 days: in cartoons Mr Trump has warned of a "major, major conflict" with the pariah nation lead by Kim Jong Un Donald Trump's first 100 days: in cartoons Mr Trump dropped the "mother of all bombs" on alleged ISIS-linked militants in Afghanistan, amid an escalation of US military intervention around the globe Donald Trump's first 100 days: in cartoons Mr Trump has been accused of falling short of the standards set by his predecessors in the Oval Office, including Franklin D Roosevelt Donald Trump's first 100 days: in cartoons The tycoon's ascension to the White House came at a time when the balance of power is shifting away from Western nations like those in the G7 group Donald Trump's first 100 days: in cartoons Western politicians, including the British Conservative party, have been accused of falling in line behind Mr Trump's proposals Donald Trump's first 100 days: in cartoons Brexit is seen to have weakened Britain, reducing still further any political will to resist American leadership Donald Trump's first 100 days: in cartoons Mr Trump's leadership has been marked by sudden and unexpected shifts in global policy Donald Trump's first 100 days: in cartoons Trump's controversial missile strike on Syria, which killed several citizens, was seen by some analysts as an attempt to distract from his policy elsewhere Donald Trump's first 100 days: in cartoons The President has also spent a large majority of his weekends golfing, rather than attending to matters of state Donald Trump's first 100 days: in cartoons Though free of gaffes, a visit from Chinese president Xi Jinping spotlighted trade tensions between the two states Donald Trump's first 100 days: in cartoons One major and unexpected setback came when Mr Trump's Healthcare Bill was struck down by members of his own party Donald Trump's first 100 days: in cartoons Mr Trump has been a figure of fun in the media, with his approval at record lows Donald Trump's first 100 days: in cartoons A string of revelations about Mr Trump's financial indiscretions did not mar his surge to the White House Donald Trump's first 100 days: in cartoons Outgoing President Barack Obama was accused of wiretapping Trump Tower by his successor in America's highest office Donald Trump's first 100 days: in cartoons The alleged involvement of Russian intelligence operatives in securing Mr Trump the presidency prompted harsh criticism Donald Trump's first 100 days: in cartoons The explosive resignation of Security Adviser Michael Flynn, who lied about his links to the Russian ambassador, was just one scandal to hit the President Donald Trump's first 100 days: in cartoons Many scandals, such as the accusation Barack Obama was implicated in phone-hacking, first broke on Mr Trump's Twitter feed Donald Trump's first 100 days: in cartoons Donald Trump's election provoked mass protests in the UK, with millions signing a petition to ban him from the country Donald Trump's first 100 days: in cartoons Donald Trump cited a non-existent terror attack in Sweden during a campaign rally Donald Trump's first 100 days: in cartoons Donald Trump stands accused of stoking regional tensions in Eastern Asia Donald Trump's first 100 days: in cartoons North Korea has launched a number of failed nuclear tests since Mr Trump took power Donald Trump's first 100 days: in cartoons Theresa May formally rejected the petition calling for Mr Trump to be banned from the UK Donald Trump's first 100 days: in cartoons When Mr Trump's initial so-called Muslim ban was struck down by a federal justice, the President mocked the 69-year-old as a "ridiculous", "so-called judge" Donald Trump's first 100 days: in cartoons A week after his inauguration, Theresa May met with Mr Trump at the White House Donald Trump's first 100 days: in cartoons Donald Trump's first days in office were marked by a hasty attempt to follow through on many of his campaign promises, including the so-called Muslim ban Donald Trump's first 100 days: in cartoons Donald Trump's decision to ban citizens of many majority-Muslim countries from the US sparked mass protests Donald Trump's first 100 days: in cartoons Revelations about Donald Trump's sexual improprieties were not enough to keep him from being elected President Donald Trump's first 100 days: in cartoons British PM Theresa May was criticised by many in the press for cosying up to the new President Donald Trump's first 100 days: in cartoons One of Mr Trump's top aides, Kelly Anne Conway, was mocked for describing mistruths as "alternative facts" Donald Trump's first 100 days: in cartoons British PM Theresa May was quick to demonstrate that her political aims did not hugely differ from Mr Trump's Donald Trump's first 100 days: in cartoons Donald Trump's inauguration, on 20 January 2017, sparked protests both at home and abroad

Papp learned he was blocked on June 4 after responding to a Trump tweet with a tweet labelling the president a “#fake leader.”

The accounts are just two of several that have been blocked by Trump or his aides, Abdo said.