It seems from the history that you probably had internal hordeolum
after treatment, now it has become chalazion
The main treatment for chalazion is either intralesional injection of long acting steroid
or by minor surgery like incision and curettage. Please do consult your eye doctor for treatment.