Kinetic theory of thermal transpiration and mechanocaloric effect. III. Flow of a polyatomic gas between parallel plates