Without knowing the boundary conditions this question can not be answered. It is even more difficult to obtain a measurement result because most photon detectors only report exceeding the device-specific minimum energy. A fairly accurate method for distances less than one meter is the Mössbauer effect, which actually measures the energy of the incoming photon. When talking about very large distances, it has to be taken into account that every photon loses energy on the way because unbound electrons are accelerated and in turn emit energy. This effect is very low and is therefore usually ignored.
Actually what I need is the effect of attenuation on photon energy. I have an initial energy of photon, but after the photon travels though a material it is attenuated.
I want to know the final photon energy after attenuation.
What energy does the photon (radiowave or light or X-ray radiation) start with? Is the material gaseous or a solid? These are necessary prerequisites for a meaningful answer. Perhaps this may help: