Authorities say a middle school math teacher in Forest Hills, Queens, is accused of sending sexually explicit instant messages to eight boys.
District Attorney Richard A. Brown said Monday that the boys are 12 or 13 years old; all were students, or former students, of the defendant, Bradley Dieffenbacher.
Dieffenbacher also is accused of asking boys to use Web cameras during sex acts and sending links to online pornography sites.
The prosecutor said Diffenbacher, a 33-year-old resident of Levittown, on Long Island, was arraigned over the weekend on charges including child endangerment and use of a child in a sexual performance.
He faces up to 15 years in state prison if convicted.
His attorney did not immediately return a call requesting comment.