When Is The Latest?

When is the latest to breastfeed after drinking?? Google articles say 3/4 hrs not to breastfeed.. But im also hearing 24 hrs from my best friend.. How soon can I breastfeed?? I pumped all day and threw the milk out that i felt was contaminated.