Two senior Indonesian politicians who met Donald Trump during his election campaign expressed confidence Thursday that the US president-elect would not act on his anti-Muslim rhetoric, local media reported.

Setya Novanto and Fadli Zon met Trump at a campaign event last year during which Trump introduced them to the crowd and asked "Do they like me in Indonesia?"

Trump said last year that if he became president, he would temporarily ban all Muslims from entering the US until he could figure out "what the hell was going on."

"I'm sure Trump won't consider such [anti-Muslim policies] after he becomes president," Novanto, who was the speaker of Indonesia's House of Representatives at the time, told news website Detik.com.

He said he was looking forward to greater cooperation between Indonesia and the US during Trump's presidency.

"I'm sure what he said during the campaign regarding his concerns about Islam is just campaign rhetoric and we will not act on that," fellow legislator Fadli Zon told Gatra magazine.

The lawmakers' meeting with Trump last September was criticized in Indonesia.

The parliament's honour council launched an inquiry into a possible ethical violation, however the pair was cleared.

Novanto and Zon said they had met with Trump to discuss potential investments in Indonesia.