Dogs are more sensitive to the effects of caffeine than people. A couple of laps of tea or coffee will not do any harm, but the ingestion of moderate amounts of coffee grounds or tea bags can lead to serious problems.  Signs are similar to chocolate toxicity and treatment is broadly similar.