A photon is a massless particle, and it always moves at the speed of light in a vacuum c. approximately \((3 \times 10^8 ) m/s). \)
Whether it is related to protons, electrons, heating, cooling, or any other process, the rest mass of a photon is always zero.