Credit: JB Lacroix/WireImage

Sarah Hyland is clearing the air with an emotional message after experiencing rampant body shaming online.

Taking to Twitter on Wednesday, the Modern Family actress used the social media platform to address eating disorder allegations and open up about what she claims has been a "difficult year" health-wise.

Calling attention to the constant comments about her fluctuating weight, the 26-year-old admitted in a series of notes, "I normally don't comment on things like this because it draws attention to those trying to spread negativity but I'm here to explain a few things and spread love. Here goes ... I haven't had the greatest year. Maybe one day I'll talk about it but for now, I'd like my privacy. I will say this year has brought a lot of changes and with that, physical changes."

The star opened up about the heartbreaking bullying she received online and quoted: "'Eat a burger,' 'your head is bigger than your body and that's disgusting.' And you're right! ... No one's head should be bigger than their body but considering I've basically been on bed rest for the past few months, I've lost a lot of muscle mass."

"Oh and no that's not photoshop," she continued. "Those are my legs. Those are my arms. I write this because I've been accused of promoting anorexia in, ironically enough, an anti-bullying post. And I want young girls to know that that's NOT my intention."

The Dirty Dancing starlet then brought up another troubling side effect of her health problems—the inability to work out and keep up her strength.

Hyland revealed that she's "eating as much protein as possible," and shared that despite her best efforts, it's difficult for her to maintain a toned physique. "It's never fun to look in the mirror and see your hard work at the gym fade away or have your legs be the size of one's arms. But I know that when I get clearance I will be able to get back to the STRONG, lean, and fabulous self I know I can be," she posted.

VIDEO: Favorite Sarah Hyland Beauty Moments

Her final message left off on a positive note. "Laugh. Love. Be happy. Support your peers. Love. Work hard. Be Confident. Love. Adopt puppies! Tell your mum you appreciate her. Love. Love. Love," she concluded.

The actress, who is known for playing Haley Dunphy in ABC's Modern Family, has also let her fans in on her struggles with kidney dysplasia and the subsequent kidney transplant in 2012.