I know that a similar question has been asked before, but the culture and location is different, and so is the context, to some extent.
My classmates keep talking to me in class, and I have a strong feeling that my grades are going down because of that. I often join in on their conversation, but regret it later. I need to tell them that I don't want to talk when the teacher is teaching us, but I don't want them to feel bad or that I've left their peer group in any way. What would be the best way to do so?
Link to similar question: How to stop colleague from talking so much when subtle hints are not working?