I suffered from typhoid fever. Now after treatment I hv weakness and improper digestion, gas and stess. Sometimes my heat rate increses and feel shaky?

Need to examine. It is not feasible to provide a meaningful opinion without examining you and your symptoms warrant evaluation by a physician.
To start with, you should start exercising as tolerated and gradually increase the activity.
For good health - Have a diet rich in fresh vegetables, fruits, whole grains, milk and milk products, nuts, beans, legumes, lentils and small amounts of lean meats. Avoid saturated fats. Drink enough water daily, so that your urine is mostly colorless. Exercise at least 150 minutes/week and increase the intensity of exercise gradually. Do not use tobacco, alcohol, weed or street drugs in any form.
Practice safe sex, if you have sex.