That seems like a bad representation of what happened. A teacher was invited to join a group chat at the beginning of the term. And then students started to use the chat to cheat, not realizing the teacher was part of the group. It's pretty clear the students were at fault, while also being really sloppy at cheating.