You have to learn to like yourself before others will though, having a deep sense of self loathing, even self consciously, will put people off of you, you emanate a deep proverbial psychological stink - and it turns people away.
However, I do agree that you need to get past self-loathing to at least self-acceptance of some kind. Mostly because self-loathing means putting your attention on yourself, and that is what makes it hard to connect with other people.
It’s ok to not have a high opinion of yourself as long as you don’t place too much importance on it, and are on with yourself.
You have you not actively dislike yourself.
Simply "chosing" to be happy is like simply "chosing" to be a milioniare.