Julian Assange speaks to the media from the balcony of the Embassy Of Ecuador on May 19, 2017 in London, England. Matthew Chattle | Barcroft Images | Getty Images

Ecuador in 2017 gave Wikileaks founder Julian Assange a diplomatic post in Russia but rescinded it after Britain refused to give him diplomatic immunity, according to an Ecuadorean government document seen by Reuters. The aborted effort suggests Ecuadorean President Lenin Moreno had engaged Moscow to resolve the situation of Assange, who has been holed up in the Ecuadorean embassy for six years to avoid arrest by British authorities on charges of skipping bail. The incident was revealed in a letter by Ecuador's foreign ministry to a legislator who had asked for information about Ecuador's decision last year to grant Assange citizenship. Ecuador last Dec. 19 approved a "special designation in favor of Mr. Julian Assange so that he can carry out functions at the Ecuadorean Embassy in Russia," according to the letter written to opposition legislator Paola Vintimilla. "Special designation" refers to the Ecuadorean president's right to name political allies to a fixed number of diplomatic posts even if they are not career diplomats.

But Britain's Foreign Office in a Dec. 21 note said it did not accept Assange as a diplomat and that it did not "consider that Mr. Assange enjoys any type of privileges and immunities under the Vienna Convention," reads the letter, citing a British diplomatic note. Ecuador abandoned its decision shortly after, according to the letter. British authorities have said they will arrest Assange if he leaves the embassy, meaning he would have needed to be recognized as a diplomat in order to travel to Moscow. Lawyers for Assange in the United States and Britain did not respond to requests for comment. WikiLeaks website did not respond to an email seeking comment. The Ecuadorean foreign ministry could not be reached for comment. The plan to make Assange an Ecuadorean diplomat was made public last year, but the effort to send him to Moscow has not been previously reported. U.S. intelligence agencies in 2017 said they believed WikiLeaks was an intermediary used by Russia to publish emails hacked from top Democrats to embarrass 2016 Democratic presidential candidate Hillary Clinton. U.S. President Donald Trump faces an investigation into whether his campaign colluded with Russia to win that election. Assange denies receiving the emails from Russia, but has not ruled out having obtained them from a third party. Trump and Russia deny collusion. The Guardian newspaper on Friday reported that Russian diplomats held secret talks in London to help Assange flee Britain through an operation tentatively scheduled for Christmas Eve, 2017.