Qatar's prime minister and Turkish delegates will join Hamas and Israeli negotiators in Egypt on Wednesday for a third day of talks aimed at ending the Gaza war, AFP reports.

Israel and Hamas are holding indirect negotiations in the Egyptian resort town of Sharm El-Sheikh, based on a 20-point plan proposed by US President Donald Trump last month.

"There's a real chance that we could do something," Trump told reporters in the Oval Office on Tuesday, adding that US negotiators were also involved in the talks. "I think there's a possibility that we could have peace in the Middle East. It's something even beyond the Gaza situation. We want a release of the hostages immediately."

Trump said the United States would do "everything possible to make sure everyone adheres to the deal" if Hamas and Israel do agree on a ceasefire.

The talks came as Israel commemorated the second anniversary of Hamas's Oct 7 attack that triggered the war.

Hamas's top negotiator, Khalil El-Hayya, said the Islamist group wants "guarantees from President Trump and the sponsor countries that the war will end once and for all."

Trump's plan calls for a ceasefire, the release of all the hostages, Hamas's disarmament and a gradual Israeli withdrawal from Gaza.

The plan received positive responses from both Israel and Hamas and prompted indirect talks in Egypt since Monday.

A Palestinian source close to the Hamas negotiating team said Tuesday's session included Hamas discussing "the initial maps presented by the Israeli side regarding the withdrawal of troops as well as the mechanism and timetable for the hostage-prisoner exchange."

On Wednesday, Trump's special Middle East envoy Steve Witkoff will join the talks, according to Egyptian Foreign Minister Badr Abdelatty.