How would you react/feel?!

We are no longer friends and haven’t spoken in months. We are still friends on facebook and I seen her post announcing her pregnancy.. I didn’t like it or comment simply because I don’t like or comment on any pregnancy post..I just scroll past them and try to avoid them because it always gets me down. About a week later she reaches out to me on messenger telling me that she is pregnant and she knows that I’ve been ttc for over a year. It honestly pissed me off and I know it sounds bad but I just couldn’t be happy for her. I don’t understand why she would go out her way to tell me in the first place. Am I wrong for thinking like this?