MOSCOW — The Russian government maintained contacts with members of Donald J. Trump’s “immediate entourage” during the American presidential campaign, one of Russia’s top diplomats said Thursday.

“There were contacts,” Sergei A. Ryabkov, the deputy foreign minister, was quoted as saying by the Interfax news agency. “We continue to do this and have been doing this work during the election campaign,” he said.

Mr. Ryabkov said officials in the Russian Foreign Ministry were familiar with many of the people he described as Mr. Trump’s entourage. “I cannot say that all, but a number of them maintained contacts with Russian representatives,” Mr. Ryabkov said.

Later, the Foreign Ministry in Moscow said Mr. Ryabkov had been referring to American politicians and supporters of Mr. Trump, not members of his campaign staff. The contacts were carried out through the Russian ambassador in Washington, who reached out to the senators and other political allies to get a better sense of Mr. Trump’s positions on various issues involving Russia.