Former Wikileaks whistleblower Chelsea Manning is recovering from gender transition surgery.

Manning, 30. shared a photo, which shows her lying in a hospital in a gown, on Twitter on Saturday afternoon.

'[A]fter almost a decade of fighting - thru [sic] prison, the courts, a hunger strike, and thru [sic] the insurance company - I finally got surgery this week,' the caption read.

So far, the photo has received more than 24,000 likes and has been shared more than 1,200 times.

Scroll down for video

Chelsea Manning, 30. shared a photo, which shows her lying in a hospital in a gown, on Twitter on Saturday afternoon

During a public appearance in the UK earlier this month, Manning (left and right) spoke about how living in the U.S. feels like a prison. Recently, she placed her name in the running for a US Senate seat in Maryland, but lost in the Democratic primary

During a public appearance in the UK earlier this month, Manning spoke about how living in the U.S. feels like a prison.

'This whole notion that you get out of prison and you are free now turned out to be a bit of a downer in that sense,' she said on Monday at the Royal Institution in London, she said.

'Because what happened, we really built this large, big prison, which is the United States, in the meantime - it was already happening, it just really intensified.

She said that the surveillance system and police officers are not much different from her life in a cell.

'You think about the surveillance systems, the cameras, or the police presence and you think about the fact that we have walls around our country, and that is very much the same thing that is inside a prison,' she told the crowd.

'I see a lot of similarities between the world out here and the world that was in there.'

Manning (pictured, August 2018) served seven years of a 35-year-sentence after she leaked more than 750,000 classified and sensitive military and diplomatic documents to WikiLeaks in 2010

At the time of her arrest, she was known as Private Bradley Manning. In January 2017, her sentence was commuted by then-President Barack Obama. Picturd: Manning in October 2012

Manning served seven years of a 35-year-sentence after she leaked more than 750,000 classified and sensitive military and diplomatic documents to WikiLeaks in 2010.

At the time of her arrest, she was known as Private Bradley Manning. In 2013, she came out as transgender.

In January 2017, her sentence was commuted by then-President Barack Obama.

Then-President-elect Donald Trump took to Twitter calling her a 'traitor' who should never have been released from prison.

When asked by the Press Association about whether she regretted her decision to leak the files, Manning replied : 'I did what I did because of what I had available to me.

'In that timeframe, what I knew and what I understood, and the background that I had and who I am, the values set that I have, and also the short time that I had to make decisions.

'The way I see it, is I don't go back in time...what I really try to tell people is that if I had done anything differently it would have been a completely different person.'

Recently, Manning placed her name in the running for a US Senate seat in Maryland, but lost in the Democratic primary