Updated at 3.40pm

The 12 boys and their soccer coach rescued from a flooded cave in Thailand waved, smiled and offered traditional "wai" greetings in their first public appearance on Wednesday at a national broadcast in the northern province of Chiang Rai.

Doctors, relatives and friends, some in yellow traditional garb, greeted the boys, aged 11 to 16, and their 25-year-old coach, who wore T-shirts emblazoned with a red graphic of a wild boar and carried in footballs they kicked gently on the set.

"Bringing the Wild Boars Home," read a banner in Thai on the set, designed to resemble a soccer field, complete with goalposts and nets, where the boys arrayed themselves on a dais, beside five members of the rescue team.

A crowd of media and onlookers was penned behind barricades as the group arrived in vans from the hospital where it has stayed since last week's international effort to extricate it from a flooded cave complex where it had been trapped.

"Today we will get the answers to the questions we have been wondering, from the boys themselves," said Suthichai Yoon, presenter of the 45-minute programme being televised live on dozens of channels.

The boys, who sported crisp haircuts, had gained an average of 3 kg each since the rescue, and ran through confidence-building exercises ahead of Wednesday's event, the hospital director said.

"I told everyone fight on, don't despair," said one boy, describing how the group had battled to stay alive during the excruciating days spent in the cave in Thailand's northern province of Chiang Rai.

Another, Adul Sam-on, 14, recalled the moment when two British divers found the group on July 2, squatting in a flooded chamber several kilometres within the cave complex.

"It was magical," he said. "I had to think a lot before I could answer their questions."

"We took turns digging at the cave walls," Ekkapol said. "We didn't want to wait around until authorities found us."

But their efforts were to no avail, he said, adding, "Almost everyone can swim. Some aren't strong swimmers, however."

The group, which had eaten before going into the caves, took no food on an excursion they had intended to last only an hour, and had to subsist on water dripping from stalactites in the cave, he added.

"We only drank water," said one of the boys, nicknamed Tee.

"I had no strength. I tried not to think about food so I didn't get more hungry," added the team's youngest member, who goes by the name Titan, and was greeted with a rousing cheer from the audience on his arrival at the news conference.

Thoughts of their parents also preoccupied the boys, with one admitting, "I was afraid. That I wouldn't go home and I would get scolded by my mother."

"We don't know what wounds the kids are carrying in their hearts," said justice ministry official Tawatchai Thaikaew, who asked for the boys' privacy to be respected after the discharge, for fear that media attention could affect their mental health.

The group had planned to explore the Tham Luang cave complex for about an hour after soccer practice on June 23. But a rainy season downpour flooded the tunnels, trapping them.

Two British divers found them on July 2, squatting on a mound in a chamber several kilometres inside the complex. All were brought to safety during the three-day rescue, organised by Thai navy SEALs and a global team of cave-diving experts.

The rescue effort drew global media attention and hundreds of journalists, many of whom left after it wrapped up, but excitement picked up again in the usually sleepy town of Chiang Rai ahead of the much-anticipated appearance.

King Maha Vajiralongkorn has granted permission for a party in the Royal Plaza, a public square in Bangkok's old town, to thank the Thai and foreign participants in the rescue, the government said.

Earlier, Prime Minister Prayuth Chan-ocha told reporters the celebration would feature a banquet and entertainment, but gave no further details.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.