"It's really a miracle," Payap said. "It's hope and faith that has brought us this success."
The plight of the boys and their coach has captivated not only Thailand, but much of the world - from the heart-sinking news that they were missing, to the first flickering video of the huddle of anxious yet smiling boys when they were found 10 days later by a pair of British divers. They were trapped in the Tham Luang cave on June 23, when they were exploring it after a soccer practice and it became flooded by monsoon rains.
Each of the boys, ages 11 to 16 and with no diving experience, was guided out by a pair of divers in three days of intricate and high-stakes operations. The route, in some places just a crawl space, had oxygen canisters positioned at regular intervals to refresh each team's air supply.
Highlighting the dangers, a former Thai navy SEAL died Friday while replenishing the canisters.
Cave-diving experts had warned it was potentially too risky to dive the youngsters out.
But Thai officials, acutely aware that the boys could be trapped for months by monsoon rains that would swell waters in the cave system, seized a window of opportunity provided by relatively mild weather. A massive water pumping effort also made the winding cave more navigable. The confidence of the diving team, and expertise specific to the cave, grew after its first successful mission.
"We did something nobody thought possible," Chiang Rai province acting Gov. Narongsak Osatanakorn, leader of the rescue effort, said at a celebratory news conference.
Thai Prime Minister Prayuth Chan-ocha, speaking Tuesday before the final rescue was completed, said the boys were given an anti-anxiety medication to help with their perilous removal from the cave.
Asked at a weekly news conference in Bangkok if the boys had been sedated, Prayuth said: "Who would chloroform them? If they're chloroformed, how could they come out? It's called anxiolytic, something to make them not excited, not stressed."
Prayuth said the Tham Luang cave would be closed for some time to make it safe for visitors.
The eight boys brought out by divers on Sunday and Monday were doing well and were in good spirits, a senior health official said. They were given a treat Tuesday: bread with chocolate spread that they had requested.
Jedsada Chokdumrongsuk, permanent secretary at the Public Health Ministry, said the first four boys rescued were able to eat normal food, though they couldn't yet take the spicy dishes favored by many Thais.
Two of the boys possibly have a lung infection but all eight are generally "healthy and smiling," he said.
"The kids are footballers, so they have high immune systems," Jedsada said. "Everyone is in high spirits and is happy to get out. But we will have a psychiatrist to evaluate them."
It could be at least seven days before they can be released from the hospital, Jedsada told a news conference.
Family members have seen at least some of the boys from behind a glass isolation barrier.
It was clear doctors were taking a cautious approach. Jedsada said they were uncertain what type of infections the boys could face "because we have never experienced this kind of issue from a deep cave."
If medical tests show no dangers, after another two days, parents will be able to enter the isolation area dressed in sterilized clothing and staying 2 meters (yards) away from the boys, said Tosthep Bunthong, a public health official.
John Tangkitcharoenthawon, a local village chairman, was bursting with happiness over the successful rescue.
"If this place had a roof, the morale has gone straight through it," he said.
President Donald Trump joined those paying tribute to the rescuers.
"On behalf of the United States, congratulations to the Thai Navy SEALs and all on the successful rescue of the 12 boys and their coach from the treacherous cave in Thailand," he tweeted.
Trump added: "Such a beautiful moment - all freed, great job!"
One of soccer's most popular teams, Manchester United, expressed its relief over the rescue and invited the boys and their coach, as well as those who saved them, to come see them play on their home ground this season.
A message posted on the English Premier League club's Twitter account said: "Our thoughts and prayers are with those affected. We would love to welcome the team from Wild Boars Football Club and their rescuers to Old Trafford this coming season."
The international soccer federation, FIFA, had already invited the boys to attend the World Cup final in Russia this Sunday. However, doctors treating the boys said it would be too soon for them to make the trip.