Praise be to Allaah.
Firstly, there is no doubt that such conversations, if they lead to evil and to fitnah (temptation) – as happened to you when you were infatuated with this man – are haraam and are not permitted. Everything that leads to haraam is also haraam. See the answer to Question # 6453.
Secondly: you have to repent to Allaah and seek His forgiveness for doing this haraam thing. You have to regret it and immediately stop engaging in chats with non-mahram men on these channels. You have to ask Allaah to cover your faults in this world and in the Hereafter. We advise you to use your time in things that will benefit you in your religious and worldly affairs, such as learning about your religion, taking care of your husband and looking after your children. Undoubtedly these are things for which Allaah will reward you. And you have to do a lot of righteous deeds, and get to know good women so that you will have alternatives to harmful uses of your time that bring no benefits. We ask Allaah to guide us all and give us all strength.
Sheikh Muhammed Salih Al-Munajjid