telegram
telegram copied to clipboard
TelegramApi class occupies the RAM – (Memory Optimization)
Actually, when I create a new object from TelegramApi previous one does not close while even I call system.gc() and when I create many objects from that it occupies much memory (until more than 1gb depends on number of objects). Is there any way to close and release used memory of previous object when I want create new one? Or use just one object but change the ApiState? (I tried to do that, but it didn't work…) thanx in advance..