Did I do anything wrong by saying I don't like to hear ill of my body?

I've been friends with this guy for quite some time online. Not very good friends though, just on talking terms. A few days ago I posted a picture with my family (I don't post my pictures usually) and he sent me a DM commenting on my body.

I'm underweight, suffer from a hormonal disease and fast metabolism and I'm trying to gain weight. My doctors have said my weight isn't a big issue for my health. However, I get a lot of mean comments on my body (note that I'm not from western world), some are so dehumanising that I want to die. This online friend also told me that I'm hideously skinny, only bones and nothing covering the bone (no flesh, skin etc) and that anybody would be scared seeing me. I told him that I don't like hearing such things, they ruin my sense of self and it's better if he never says similar things to anyone else either.

He is now posting "since I'm not a violent person, I don't hurt or harm people." He also told many people that I need serious treatment and that I am in delusion, falsely believing that I'm pretty.

Did I do anything wrong?

Did I do anything wrong by saying I don't like to hear ill of my body?
Post Opinion