Stormy Daniels has announced she is writing an autobiographical book titled Full Disclosure that includes details of her alleged affair with President Donald Trump.

The adult film star, who claims to have had a months-long affair with the president starting in 2006, said her book would be released in October of this year.

"It's going to be a long three weeks before the book comes out for Donald Trump," her attorney, Michael Avenatti, said in an appearance on The View on Wednesday.

Mr Trump has denied ever having an affair with Ms Daniels. But his former attorney, Michael Cohen, pleaded guilty last month to campaign finance violations stemming from a hush-money payment he made to the actress shortly before the election.

In a court hearing, Mr Cohen said the president directed him to pay off both Ms Daniels and another woman who claimed to have had an affair with him. Mr Trump has said he was not aware of the payments until after they were made.

Trump's presidency: US media reacts to Manafort and Cohen convictions Show all 16 1 /16 Trump's presidency: US media reacts to Manafort and Cohen convictions Trump's presidency: US media reacts to Manafort and Cohen convictions New York Post Trump's presidency: US media reacts to Manafort and Cohen convictions The Washington Post Trump's presidency: US media reacts to Manafort and Cohen convictions Newsday Trump's presidency: US media reacts to Manafort and Cohen convictions St Louis Post Dispatch Trump's presidency: US media reacts to Manafort and Cohen convictions Chicago Sun Times Trump's presidency: US media reacts to Manafort and Cohen convictions The Star Ledger Trump's presidency: US media reacts to Manafort and Cohen convictions Daily News Trump's presidency: US media reacts to Manafort and Cohen convictions The New York Times Trump's presidency: US media reacts to Manafort and Cohen convictions San Francisco Chronicle Trump's presidency: US media reacts to Manafort and Cohen convictions The Boston Globe Trump's presidency: US media reacts to Manafort and Cohen convictions Houston Chronicle Trump's presidency: US media reacts to Manafort and Cohen convictions Miami Herald Trump's presidency: US media reacts to Manafort and Cohen convictions Detroit Free Press Trump's presidency: US media reacts to Manafort and Cohen convictions The Wall Street Journal Trump's presidency: US media reacts to Manafort and Cohen convictions The Dallas Morning News Trump's presidency: US media reacts to Manafort and Cohen convictions USA Today

Ms Daniels rose to national prominence after suing the president to break the non-disclosure agreement that Mr Cohen brokered before the election. The book announcement came on the heels of a court filing in which Mr Trump's attorneys said they did not plan on enforcing the agreement after all.

St Martin's Press confirmed in a statement that they would be publishing Full Disclosure, which will be released on 2 October, adding that the book would chronicle Ms Daniels's journey "from a rough childhood in Louisiana onto the national stage, and the events that led to the nondisclosure agreement and the behind-the-scenes attempts to intimidate her".

“I own my story and the choices I made,” the publisher cites her as writing. “They may not be the ones you would have made, but I stand by them.”

West Hollywood Mayor John Duran: Stormy Daniels standing up to 'direct threat' of Donald Trump to vulnerable communities

The actress said she was motivated to write the book in part by her experience in previous interviews, where she felt she was not able to tell the full story of her affair and ensuing court case.

"I was like, 'I'm going to write everything and include it — and people can think what they want to about me, but at least it's the truth'," she said on Wednesday.

Ms Daniels has previously said she felt vindicated by Mr Cohen's guilty plea, in which he admitted to violating campaign finance law at the president's direction “for the principal purpose of influencing the election".

"How ya like me now?" she tweeted after Mr Cohen's hearing in August.

On Wednesday, she opened up slightly about the experience, saying she "broke down into sobs" after hearing the news.