Several times... from your basic soda in a cup to beer bottles... in over 30 years of cycling I have pretty much experienced it all.
I have only been hit once, and that was a cup of beer by sports enthusiasts leaving a game in a bus. I was riding by the stopped bus and they just dropped the beer on me. I had been to the same game, but on bike. So much for team loyalty.
The funniest thing was having a can of beer tossed my way during a commute and watching it smash on the curb just in front of my front tire, just missing me... but it sprang a leak and just took off like a rocket spinning around spewing beer everywhere. (I wish they'd just offer the thing rather then launching it... )