After 2 years I messaged her

I was talking to a friend on reddit and helping him out with his friend whom he liked. He gave her dry replies and ignored her and all of a sudden it felt like my older version was talking to myself.

She gave her 100% in friendship but I didnt appreciated it. I tried to grab attention, I ignored her, gave her dry replies and did many things which a friend should not have.

I read my old chats, where she was trying saying we will make it right, we will be best friends and all and I messaged was "hmm"

I messaged her today, apologized to her after 2 years and said it was my fault all along cause I never appreciated her efforts because of which she felt terrible even though it was all my fault.

I didnt cared what 2 years after she will say or people around her will say.

I just remembered what my elders used to say, "Jo kaam aadha adhura chodhke gaye the usse pura ek din hona hi hain, aaj sach saamne ni aaya to kabhi na kabhi sach saamne aayega"

Even though I might sound creepy to her and she might be thinking I am trying to do friendship again but I just gave her a sorry message and logged off my ID.

Did I do it right? I feel a heavy weight dropped from my shoulder but my heart was racing.

After 2 years, I finally accepted my mistake and confessed the truth