Breastfeeding after section

With my first baby I was on magnesium for 3 days from complications & they said I couldn’t breastfeed while on it. What are your tips for when this next baby comes?