In this paper we present a generalization of the optical theorem to the case of radiation scattering by a particle placed into a regularly inhomogeneous medium. The generalization was made based on the energy balance analysis of incident, scattered, and absorbed radiation without using traditional assumption about a plane wave scattering in a homogeneous medium surrounding the scatterer.