Former US president Donald Trump has praised Nigeria’s government for banning Twitter after it deleted President Muhammadu Buhari’s post for breaching its rules.

“Who are they to dictate good and evil, if they themselves are evil?” Mr Trump said in a statement.

He urged other countries to ban Twitter for not allowing “free and open speech”.

“Congratulations to the country of Nigeria, who just banned Twitter,” he said in a statement.

Mr Trump was banned from Twitter and Facebook after the US Capitol riot in January.

His posts before and after the raid were alleged to have encouraged violence.