Good thing those Chilean miners didn’t get the munchies — they smoked pot while trapped for 69 days and considered cannibalizing the first one to collapse.

Some of the 33 miners had the weed sent to them in letters from their wives, a startling new book reveals.

“Officials from the Chilean government became so concerned [over the pot use] that they discussed getting a drug-sniffing dog” to ferret out the rogue letters delivered through a rescue shaft, according to the book “33 Men” by journalist Jonathan Franklin.

Britain’s Daily Mail, quoting the book, said some miners also received deliveries of pornography — and asked for inflatable dolls.

The request for dolls was refused, but only because there weren’t enough available.

“A guy offered them inflatable dolls, but he only had 10,” said Dr. Jean Romagnoli, who was assessing the men’s health from the surface.

“I said, ‘Thirty-three or none.’ Otherwise they would be fighting over them.”

Franklin and several miners appeared last night on CBS’s “60 Minutes” and said the trapped men were so desperate by the 16th day that they considered suicide — or eating the first miner to collapse.

“I said to a friend, ‘Well, if we are going to continue suffering, it would be better for us to . . . start an engine and with the carbon monoxide just let ourselves go,” said miner Victor Zamora.

Franklin quoted a miner saying that his friends told him he would be “breakfast, lunch and dinner.”

He added a rescue shaft was completed just in time — adding that trapped men “had a pot and a saw ready.”