Telepathy doesn't mean Pokemon take no damage from hazards (Stealth Rocks, Spikes, Toxic Spikes etc.) placed on their side of the field by teammates, or other status category moves' damaging affects. When a hazard is on the field, the Pokemon it comes from doesn't matter. No matter which Pokemon a hazard came from, all other Pokemon will be effected by it how they would if it were from any other Pokemon. Plus, Stealth Rocks are an affect of a status move, which isn't an attack, so that makes sense.
I hope that solves your Stealth Rocks issue.