He may have called for a “total and complete shutdown of Muslims entering the United States until our country's representatives can figure out what the hell is going on.”

While on the campaign trail, President-elect Trump may also have claimed – falsely – that thousands of Muslims in New Jersey “where you have large Arab populations” were cheering when the Twin Towers came down in the September 11 attacks.

That, though, does not seem to have stopped the prime minister of the country with the fourth largest Muslim population in the world from appearing to welcome Donald Trump with open arms and a fawning letter now he has been elected US President.

Either through genuine conviction or diplomatic necessity, Sheikh Hasina, prime minister of Bangladesh, home to 145 million Muslims, has wasted no time in congratulating Mr Trump and heaping praise on his “extraordinary leadership to serving the American people and global humanity.”

The letter, which follows United Nations protocol in addressing Mr Trump as “Excellency”, cordially invites him and his wife Melania to Bangladesh, and pays tribute to “the warm, friendly people of the United States.”

There is no mention of Mr Trump’s campaign comments, the Islamophobia of some of his supporters, or the fact that delighted ex- Klu Klux Klan ‘grand wizard’ David Duke has claimed “our people played a huge role in electing Trump.”

“Excellency,” Ms Hasina’s letter begins, “On behalf of the Government and the people of Bangladesh, I convey our congratulations to you on your election as the 45th President of the United States of America.

“Your victory is certainly a testimony to your extraordinary leadership quality to serving the American people and also the global humanity. [sic]”

Donald Trump's most controversial quotes Show all 14 1 /14 Donald Trump's most controversial quotes Donald Trump's most controversial quotes On Isis: "Some of the candidates, they went in and didn’t know the air conditioner didn’t work and sweated like dogs, and they didn’t know the room was too big because they didn’t have anybody there. How are they going to beat ISIS?" Getty Donald Trump's most controversial quotes On immigration: "I will build a great wall — and nobody builds walls better than me, believe me —and I’ll build them very inexpensively. I will build a great, great wall on our southern border, and I will make Mexico pay for that wall. Mark my words." Reuters Donald Trump's most controversial quotes On Free Trade: "Free trade is terrible. Free trade can be wonderful if you have smart people. But we have stupid people." PAUL J. RICHARDS | AFP | Getty Images Donald Trump's most controversial quotes On Mexicans: "When Mexico sends its people, they’re not sending their best. They’re sending people that have lots of problems. They’re bringing drugs. They’re bringing crime. They’re rapists." Getty Donald Trump's most controversial quotes On China: "I just sold an apartment for $15 million to somebody from China. Am I supposed to dislike them?... I love China. The biggest bank in the world is from China. You know where their United States headquarters is located? In this building, in Trump Tower." Getty Images Donald Trump's most controversial quotes On work: "If you're interested in 'balancing' work and pleasure, stop trying to balance them. Instead make your work more pleasurable." AP Donald Trump's most controversial quotes On success: "What separates the winners from the losers is how a person reacts to each new twist of fate." Donald Trump's most controversial quotes On life: "Everything in life is luck." AFP Donald Trump's most controversial quotes On ambition: "You have to think anyway, so why not think big?" Getty Images Donald Trump's most controversial quotes On his opponents: "Bush is totally in favour of Common Core. I don't see how he can possibly get the nomination. He's weak on immigration. He's in favour of Common Core. How the hell can you vote for this guy? You just can't do it." Reuters Donald Trump's most controversial quotes On Obamacare: "You have to be hit by a tractor, literally, a tractor, to use it, because the deductibles are so high. It's virtually useless. And remember the $5 billion web site?... I have so many web sites, I have them all over the place. I hire people, they do a web site. It costs me $3." Getty Images Donald Trump's most controversial quotes On Barack Obama: "Obama is going to be out playing golf. He might be on one of my courses. I would invite him. I have the best courses in the world. I have one right next to the White House." PA Donald Trump's most controversial quotes On himself: "Love him or hate him, Trump is a man who is certain about what he wants and sets out to get it, no holds barred. Women find his power almost as much of a turn-on as his money." Getty Images Donald Trump's most controversial quotes On America: "The American Dream is dead. But if I get elected president I will bring it back bigger and better and stronger than ever before and we will make America great again." GETTY

After expressing confidence that “under your leadership, the existing bilateral relations between our two friendly nations would be further strengthened,” the Bangladeshi prime minister adds: “I cordially invite you and Mrs Melania Trump to visit Bangladesh at a mutually convenient time and see for yourself the phenomenal development that took place in Bangladesh in the recent years.”

She signs off: “I wish you and your family good health, long life and happiness, and the warm, friendly people of the United States continued peace, progress and prosperity.

“Please accept, Excellency, the assurances of my highest consideration.”

Bangladeshi prime minister Sheikh Hasina's letter to President-elect Donald Trump

Trump’s rival Hillary Clinton also seems to have been warmly received by Ms Hasina when she visited as Secretary of State in 2012. Ms Clinton’s visit was the first by a US Secretary of State since 2003 and reflected the growing ties with a country which the Obama administration saw as having a moderate Muslim population that had a role to play in demonstrating the alternatives to extremism.

In the same year, however, the leak of a cable from Ms Clinton’s State Department did expose some differences with the Bangladeshi government.

Written in 2010, the cable suggested that the war crimes tribunal set up by Ms Hasina’s ruling Awami League party to try suspects over alleged atrocities during the 1971 war of independence from Pakistan was also being used to crush political opponents.

Making claims that were subsequently denied by the Bangladeshi government, the cable, made public by Wikileaks, said “There is little doubt that hard-line elements within the ruling party believe the time is right to crush Jamaat-e-Islami and other Islamic parties.”

There were also tensions in 2013 when the Obama administration suspended trade privileges for Bangladesh in response to concerns about labour rights in the country after 1,200 people died in the Rana Plaza factory collapse, one of the global garment industry’s worst accidents.