The formula $E=hf$ shows the energy contained in one photon. Here, we use the simple half wave dipole antenna to evaluate the energy of photons at different frequencies. Surprisingly that gives a different relation between Photon energy and its frequency.
Half wave dipole antenna is a special antenna. At resonance frequency, there is no return loss, and all the applied energy will radiate. Its resistance at resonance frequency is 73 ohms, regardless of the resonance frequency.
For a current source of I applied to the antenna, we have
$P=R\times I\times I$, $R=73\;\Omega$ , So $P$ is constant
Energy of one cycle $=P/f$ $f=$frequency
$E=P/f$
$E$ is the energy of one cycle which is related to the quantum concept, and its energy is inversely proportional to the frequency!
In the case of light photons, bonding energy of the electron plays the major role in emission characteristic, where the formula $E=hf$ completely works. But in antennas, electrons move freely inside the antenna's conductor that produce electromagnetic waves.