Depression and ttc

I been depressed as far as I can remember. I also have anxiety. It's been hard to deal with trying to conceive especially because I get more stressed and frustrated due to my depression and anxiety. I been told to not even try getting pregnant because of my condition and it actually makes me feel worse. I feel useless and broken because I want a baby and now because I have this im told I can't. It makes me hate my self more it makes everything worse. And all I want to hear is that it will be ok. That I can do it. But I don't think anyone will ever tell me that.