Baby choking while breastfeeding

Gabriela

I’ve been trying to breastfeed my baby but every once in a while he chokes and it scares me. I sit him up and pat his back and after a bit he’s okay. I’m worried though because at the hospital they were talking about that and mentioned how it can get to his lungs and now i’m scared. Does anyone know if this is true? How can I know if this happened?