it is not likely that your tonsillitis
is due to changing your cigarettes , rather it may be due to an infection , this may come for contact with infected people.
please meet your doctor again , if you feel you are developing the infection again. meanwhile i would like you to quit smoking
and try to gargle 2-3 times a day with warm salt water.