Help me with this boy

So this boy and I have been talking for a long time and I had gotten his info from one of my friends. It’s been seven months of just talking and sometimes when I would tell him I felt insecure he would tell me I’m perfect etc. The thing is we have never met before. He tells me he loves me all the time and so do I because I considered him my bestfriend. Then at a party I went to, my friends somehow got his info and told him he should ask me out because we all new he liked me I even knew. So he did and in the spur of the moment o did it know what to do and being a teen I make dumb decision so I said yes, it was later at night so like 3 a.m and I couldn’t sleep because my guy was telling me I was wrong for saying him and I didn’t like if that way. So I texted him I really don’t think it was gonna work out. He later texted me frantically saying he was sorry for what he did and etc. I told him he deserved a girl who loves him as much as he loves the other person and told him he should find a girl that actually looks pretty next to him because he was so HOT And in my eyes I wasn’t so I told him that and I blocked him. I later unblocked him to say I’m sorry but it just has to be that way and he will always have a special place in my heart. But my friends keep saying I made a mistake and I should go back to him but idk what to do??? Help me?!?!