The U.S. president made the remarks on social media just hours after Iran's president announced that unspecified countries had begun mediation efforts.