My bf broke up with me :(

I’m heartbroken, my boyfriend of 3 years broke up with me. He texted me that he doesn’t want to hurt me anymore, that he doesn’t feel the same way anymore and that he wants to be alone and reconstruct his life alone. He thanked me for everything and said i will always be within his heart. I’m so sad I feel as I’ve gotten disposed. I don’t know what to do or think. I just can’t stop crying. I feel used.