I lost my baby

I'm 18 years old and found out just last night that after 10 weeks, I've had a miscarriage. The pregnancy was an accident at first but we came to love our baby and we were so excited to meet him/her. We're heartbroken right now and we aren't sure how or when to tell people. Our friends and family knew that we were expecting. When our friends found out they put together money to buy us some baby things out of excitement because we are young and don't have much money. I don't know how to tell everyone or what to say. I don't even want to say it out loud I would rather get it over with through text but I don't know if people would be offended. I'm not sure what to say to anyone now.