TEHRAN — A group of young Iranian men and women known as the “Happy in Tehran” dancers, arrested in May for videotaping themselves cavorting to Pharrell Williams’s popular dance hit, were informed on Thursday of their punishments: 91 lashes and six months of imprisonment for each.

One of the female dancers was given a punishment of 91 lashes and 12 months for uploading the video to the Internet, where it caused an international sensation.

All of the punishments were suspended, one of the dancers said. But they could be carried out if the six defendants committed further wrongdoing over the next three years, a common form of deterrence in Iran’s judicial system.

An official announcement of the punishments could come on Saturday.

All were convicted of vulgarity and illicit relations because the video showed the female dancers, their heads illegally bared, jumping and jiving with the men. Public dancing is outlawed in Iran. One of the defendants said the prosecutors and judge presiding over the case described the video as pornography.