I’m Czech and my city has a trolleybus network. Every single trolleybus has either a) diesel engine or b) battery backup, depends on their age. Hell, there are even entire lines where 1/3rd they run on batteries. But, they can be smaller, so the vehicle is lighter.