Family doctor or OBGYN

If I wanted to talk to my doctor about getting medication for postpartum, would I talk to my OBGYN or my family doctor?