(CNN) Indian officials have denied claims made by United States President Donald Trump that he was invited by the Indian government to mediate in the long-running Kashmir conflict, after his comments provoked a social media firestorm in India.

Raveesh Kumar, spokesman for India's Ministry of External Affairs, tweeted late Monday that "no such request has been made" by Indian Prime Minister Narendra Modi. Kumar also reiterated that the territorial dispute needs to be resolved bilaterally between India and Pakistan, who have been bitter rivals for decades.

Trump first made the claim on Monday at the White House, speaking alongside Pakistani Prime Minister Imran Khan, who said he'd request Trump's help in bringing peace to the region.

"I was with Prime Minister Modi two weeks ago and we talked about this subject," Trump told Khan. "And he actually said, 'Would you like to be a mediator or arbitrator?' I said, 'Where?' He said, 'Kashmir.' Because this has been going on for many, many years."

"I think they'd like to see it resolved and I think you'd like to see it resolved," Trump went on. "If I could help, I would love to be a mediator."