Donald Trump has revealed that the US government has spoken to different parties about the potential sale of TikTok.