(a) Summary offense.--Except as provided in section 6312 (relating to sexual abuse of children), a minor commits a summary offense when the minor:
(b) Misdemeanor of the third degree.--Except as provided in section 6312, a minor commits a misdemeanor of the third degree when the minor knowingly transmits, distributes, publishes or disseminates an electronic communication containing a sexually explicit image of another minor who is 12 years of age or older.
(c) Misdemeanor of the second degree.--Except as provided in section 6312, a minor commits a misdemeanor of the second degree when, with the intent to coerce, intimidate, torment, harass or otherwise cause emotional distress to another minor, the minor:
(d) Application of section.--This section shall not apply to the following:
(e) Forfeiture.--Any electronic communication device used in violation of this section shall be subject to forfeiture to the Commonwealth and no property right shall exist in it.
(f) Diversionary program.--The magisterial district judge or any judicial authority with jurisdiction over the violation shall give first consideration to referring a person charged with a violation of subsection (a) to a diversionary program under 42 Pa.C.S. § 1520 (relating to adjudication alternative program) and the Pennsylvania Rules of Criminal Procedure. As part of the diversionary program, the magisterial district judge or any judicial authority with jurisdiction over the violation may order the person to participate in an educational program which includes the legal and nonlegal consequences of sharing sexually explicit images. If the person successfully completes the diversionary program, the person's records of the charge of violating subsection (a) shall be expunged as provided for under Pa.R.C.P. No. 320 (relating to expungement upon successful completion of ARD program).
(g) Definitions.--As used in this section, the following words and phrases shall have the meanings given to them in this subsection unless the context clearly indicates otherwise:
"Disseminate." To cause or make an electronic or actual communication from one person, place or electronic communication device to two or more other persons, places or electronic communication devices.
"Distribute." To deliver or pass out.
"Electronic communication." As defined in section 5702 (relating to definitions).
"Knowingly possesses." The deliberate, purposeful, voluntary possession of a sexually explicit image of another minor who is 12 years of age or older. The term shall not include the accidental or inadvertent possession of such an image.
"Knowingly views." The deliberate, purposeful, voluntary viewing of a sexually explicit image of another minor who is 12 years of age or older. The term shall not include the accidental or inadvertent viewing of such an image.
"Minor." An individual under 18 years of age.
"Nudity." The showing of the human male or female genitals, pubic area or buttocks with less than a fully opaque covering, the showing of the female breast with less than a fully opaque covering of any portion thereof below the top of the nipple or the depiction of covered male genitals in a discernibly turgid state.
"Publish." To issue for distribution.
"Sexually explicit image." A lewd or lascivious visual depiction of a minor's genitals, pubic area, breast or buttocks or nudity, if such nudity is depicted for the purpose of sexual stimulation or gratification of any person who might view such nudity.
"Transmit." To cause or make an electronic communication from one person, place or electronic communication device to only one other person, place or electronic communication device.
"Visual depiction." A representation by picture, including, but not limited to, a photograph, videotape, film or computer image.
18 Pa.C.S. § 6321