telegram icon indicating copy to clipboard operation
telegram copied to clipboard

TelegramApi class occupies the RAM – (Memory Optimization)

Open kiaksarg opened this issue 10 years ago • 0 comments

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..

kiaksarg avatar Dec 13 '15 17:12 kiaksarg