single parent

So I got pregnant unexpectedly, and my boyfriend at the time at first wasn’t excited but as time when on her became really excited to become a father. As time went on I noticed my boyfriend began acting differently, he cheated on me during my pregnancy, anyway I forgave him and we moved from it, but he continued cheating. It eventually got to the point where I decided I needed to move out and work on myself. Today he just sent me a text saying he doesn’t want to be with me anymore and he’s going back to his ex that he has one child with. My feelings are crushed and I’m halfway through my pregnancy. I guess I just need some advice from single mothers out there. Words of encouragement would also be nice because I am feeling down.