Annihilation of light dark matter into photons in model-independent approach