It is possible to develop asthma at any time in your life but it is unusual to do so at your age, when you have never had any sign of it in the past. Not all wheezing is caused by asthma and it is more likely that you have had acute bronchitis. But, ordinary acute bronchitis usually resolves in less than 6 weeks and, sometimes when the infection causing acute bronchitis is severe, it can bring on asthma, with cough and wheezing that persists. This does not mean that you will have it the rest of your life.
One type of inhaled medicine, used to treat asthma can cause palpitation and what has happened suggests that you may be sensitive to the side effect of this medicine. You might try using 1 puff at a time instead of the recommended 2 puffs. That may reduce the chance of palpitation. You could also ask your doctor if the use of other asthma/bronchitis medicines such as inhaled steroids and Singulair® (montelukast sodium) might be helpful, along with a cough suppressant. These medicines do not cause palpitation.
Another possibility is that you may have whooping cough and, with that, a person may cough for 6 months or more. It is no longer uncommon for an adult to have whooping cough. You might want to ask your doctor about that.
You are feeling miserable now, but given time, you will get over this illness.
Good luck.
thank you so much for your answers it has helped me a lot.Barbara