Whats the right way/position?

So sometimes i know babies will cough or choke when theyre drinking milk maybe the bottle top is to big. So when ever my baby starts to cough/choke she drinks from bottle shes 1 MO i sit her up and pat ber back. Or will just hold her and pat her back.

Whats the best way/positioned to pat a babg when ever they start coughing when drinking milk?