New method of generating gamma rays with orbital angular momentum