US President Donald Trump said he had a “great meeting” on Tuesday with Twitter chief executive Jack Dorsey, after attacking the company earlier in the day.

Mr Trump and some Republicans in Congress have complained that social media giants are biased against Republicans, something the companies have rejected as untrue.

Mr Trump gave his account of the meeting on Twitter, writing: “Lots of subjects discussed regarding their platform, and the world of social media in general. Look forward to keeping an open dialogue!”

While some tech company executives may lean towards the liberal, they have long asserted that their products are without political bias.

Mr Trump had tweeted earlier Tuesday that Twitter did not treat him well and that he would have more followers “if Twitter wasn’t playing their political games”.

Twitter described the meeting with Mr Dorsey as constructive and said it came at the president’s invitation.

“They discussed Twitter’s commitment to protecting the health of the public conversation ahead of the 2020 US elections and efforts under way to respond to the opioid crisis,” the company said in a statement.