Translate the following English sentence to French:
"I had chronic bronchitis and I was told by the doctor that I had to give up as otherwise my life would be in danger."
Je souffrais d'une bronchite chronique et le médecin m'a dit que je devais cesser de fumer si je ne voulais pas mettre ma vie en danger.