Ref. No. 1220/42-526
In the name of Allah the most Grcious the most merciful
The answer to your question is as follows:
If people give something to Imam of Taraweeh on their own will, then it will be permissible. However, collection should not be made forcefully from the people for this purpose.
And Allah knows best
Darul Uloom Waqf Deoband
This answer was collected from the official website of Darul Uloom Deoband Waqf. The institution is based in India and the answers are provided in accordance to the Hanafi Fiqh.