You should never take any medicine which is open or unknown, it might be anything from candy to poison, but I guess this one was candy.. So don't worry much, take lot of liquids and consult a surgeon
Next Steps
Drink plenty of liquids
Health Tips
Never repeat such mistake