"Trump acknowledged that the war had cost both U.S. and Pakistan", the foreign ministry statement continued.
The ministry welcomed the USA president's outreach, saying "Pakistan has always advocated a political settlement to end war in Afghanistan".
"Pakistan reiterates its commitment to play the role of facilitator in good faith", the ministry statement said.
The US embassy in Islamabad had no immediate comment on the letter. Peace and stability in Afghanistan remain a shared responsibility.
The troubled relationship between Pakistan and the U.S. hit yet another bump last month after Trump declared he had cancelled assistance worth hundreds of millions of dollars because Islamabad does not do "a damn thing" for the US. "He has asked for Pakistan's cooperation to bring the Taliban into talks", Chaudhry told Reuters.More news: CDC: You can eat some romaine lettuce; check labels
Swaraj through her official Twitter account alleged that Qureshi's remarks had exposed that Pakistan had no respect for the Sikh sentiments and was doing it all for politics.
Trump wants to end a 17-year-old war between Afghan security forces and the Taliban, who are fighting to drive out worldwide forces and establish their version of strict Islamic law.
The US president has also sought Islamabad's assistance to bring Taliban leadership to the negotiating table. The U.S. military has lost more than 2,400 service members and spent almost a trillion dollars since the war started in 2001.
Trump told Khan the Pakistan relationship was very important to Washington and to finding a solution to the Afghanistan conflict, Chaudhry added.
Prime Minister Imran Khan, who is facing severe criticism on both social and mainstream media over his proposal of poverty alleviation through a poultry policy, on Saturday slammed the "colonised minds" for praising the same idea when it was given by "wilaitis" [foreigners]. Khalilzad last visited the region in November, where he met with members of the Afghan civil society and other government officials.
In a televised interview to selected journalists in the evening, Khan said his government would "try our best to make the Afghan Taliban sit together with the Americans so that negotiations can be carried forward", without giving further details.