(Reuters) -Paraguay said on Thursday it had canceled a low-level Chinese diplomat's visa and ordered him to leave, after the envoy appeared to encourage lawmakers to reconsider Paraguay's friendly relationship with Taiwan. 

The foreign ministry accused Xu Wei of "interference in domestic affairs," while Taiwan's embassy said he had "infiltrated" Paraguay to undermine its relationship with Chinese-claimed Taiwan. 

The ministry did not detail Xu's offence, saying he had violated the terms of his visa after arriving as part of a Chinese group for a UNESCO meeting. Xu was given 24 hours to leave. 

In comments recorded in Paraguay's parliament and shared with Reuters, Xu urgedParaguay to recognize China over Taiwan.

Xu made the comments after meeting with two opposition lawmakers with sympathetic views toward China. 

"Having diplomatic relations with China, you can earn more, save more, lower your costs," Xu was heard to say. 

"My purpose of this visit is to promote, accelerate the process of filling the gap in the map ofParaguay, that gap is gigantic, which is called the People's Republic of China," he said.

"There is no 'and' option. With China and Taiwan it's just 'or': China or Taiwan."

Paraguay's long-standing diplomatic support for Taiwan has held back grain exports to China. It is the only remaining South American country with formal relations with Taipei.

China considers democratically governed Taiwan its own territory. Taipei rejects this, saying only the island's people can decide their future.

"This gentleman had a parallel agenda; he came to do internal politics that were not appropriate," said Juan Baiardi, Deputy Minister of Administration and Technical Affairs ofParaguay's Foreign Ministry.

(Reporting by Daniela Desantis; Additional reporting by Ben Blanchard in Taipei and Joe Cash in Beijing; Writing by Aida Pelaez-Fernandez and Liz Lee; Editing by Kylie Madry, Brendan O'Boyle, Saad Sayeed and Kevin Liffey)