"Lecture" is a good word. You could also say that you would be "given a talking to."
You wouldn't say "talked at."
("Talk at" is used when someone complains about a lack of effective communication, especially in a relationship. "He doesn't talk to me, he talks at me.")