Compounds and methods for treating diseases mediated by a P2X3 and/or a P2X2/3 receptor antagonist, the compounds being of formula (I):