Volodymyr Zelensky / REUTERS

"#Ukraine did not and will not allow itself to interfere in the elections and thus harm our trusting and sincere partnership with the #USA," he wrote on Twitter late on Saturday, August 9, according to Reuters.

Read alsoZelensky's visit to U.S. may happen before presidential elections in that country – Ambassador

"Never, under any circumstances, it's acceptable to meddle in another country's sovereign elections," Zelensky wrote.

Zelensky appealed to Ukrainian politicians to avoid any actions that could be linked to U.S. elections, nor allow themselves to try to solve any of their personal, political or business problems that way.

"Ukraine's reputation is worth much more than the reputation of any of our politicians," the president said.

Earlier this week, Zelensky told Reuters that he hoped U.S. support for Ukraine would remain strong regardless of who wins the American election.