West African leaders have given Yahya Jammeh a final opportunity to relinquish power after Senegalese troops entered The Gambia. Mr Jammeh has been given until noon on Friday to leave office or be forced out by UN-backed regional forces. Troops have been told to halt their advance until the deadline passes. The Economic Community of West African States (ECOWAS) is acting in support of Adama Barrow, who was sworn in as the new Gambian president on Thursday. His legitimacy as president, after winning last month's election, has been recognised internationally. Last-ditch mediation talks, led by Guinea's President Alpha Conde, are due on Friday morning. Chairman of the ECOWAS commission, Marcel Alain de Souza, said that if the meeting with Mr Conde proved unsuccessful, military action would follow. "If by midday, he (Mr Jammeh) doesn't agree to leave The Gambia under the banner of President Conde, we really will intervene militarily," he said. ECOWAS said that its forces had encountered no resistance after entering The Gambia on Thursday. Troops from Senegal and other West African countries crossed into The Gambia after an initial deadline for Mr Jammeh to stand down passed with his resignation. Mr Barrow, who remains in Senegal, has said that he will not return to Gambia's capital, Banjul, until the military operation had ended. The threat by West African regional bloc ECOWAS to remove Mr Jammeh by force is supported by the 15-member UN Security Council, although the council has stressed that a political solution should be the priority. A Senegalese army spokesman, Col Abdou Ndiaye, told the BBC that troops who were now in The Gambia were prepared to fight if necessary. "It is already war, if we find any resistance, we will fight it," he said, adding: "If there are people who are fighting for the former president, we will fight them." But Col Ndiaye said the main goal of ECOWAS was to restore democracy and to allow the newly-elected president to take power.