Hi thanks for your question.
you are having constipation
and want to know,for long you have to take medicine.
well, as along as you don't know the cause of constipation ,you will remain constipated and you have to take medicine.
Consult a physician get yourself investigated for cause of constipation.
you need to get your thyroid
profile and colonoscopy
done to establish cause of constipation,which could be treated,so that you don't have to take medicine for long time.
Hope this answers your question.