Former director of National Intelligence James Clapper said the “beautiful letter” President Trump cited in his Twitter attack was almost identical to one he also had prepared for Hillary Clinton.

In his tweet, Trump blasted Clapper for questioning the commander-in-chief’s fitness for office.

“James Clapper, who famously got caught lying to Congress, is now an authority on Donald Trump. Will he show you his beautiful letter to me?,” Trump tweeted.

Clapper shed light on the letter during an interview on CNN.

“The night before the election, we deployed two teams so that we would be ready to provide a PDB brief the next morning to whomever won,” Clapper recounted, referring to the Presidential Daily Briefing.

“I hand-wrote almost identical short notes to each of the two candidates to accompany the first brief as President-elect; only one actually got deployed — the one to him,” he said.

The undelivered missive to Clinton congratulated her on her victory and said the intelligence community was prepared to serve her with the best intelligence it could provide.

The letter to Trump said the same thing.

“I went on to say that I hoped he would abide by the long-standing principle of the IC always telling ‘truth to power,'” Clapper told CNN, noting that he was paraphrasing because he didn’t have a copy of the note. “IC” stands for intelligence community.

On Jan. 6, intelligence officials went to Trump Tower to brief the president-elect about their assessment on Russian interference in the election.

Clapper said he remembers Trump thanking him for the letter three times.

Clapper added that he does not consider himself an “authority” on Trump, as the president tweeted.

“My comments are based on what I’ve observed him say and do — just like everyone else,” he told CNN.