In this work we estimate gas temperature from OH rotational spectrum at 306.4 nm and C2 Swan band at 516.5 nm in thallium containing lamps during two working regimes: stable generation and self-modulation regime. The usage of both molecules allowed us to estimate gas temperature in different zones of the discharge. The measurement results show that the central part of discharge has temperature higher for about 400 K than in vicinity of lamp inner walls. The measurement results of self-modulation regime showed that rotational temperature variations are similar to that of atomic and molecular spectral line intensities with period being around 1 minute. More detailed analysis of temporal behavior of spectral lines gives us information about collisional processes in the plasma.