Current algebras and generalized Ward-Takahashi identities