Please help

Jessica

I went to the hospital last night and they told me I'm pregnant but it's very early and I woke up not to long ago and I'm spotting

So I'm I having a miscarriage or what could it be