gramjs icon indicating copy to clipboard operation
gramjs copied to clipboard

Multiple connection hangs

Open BHIgor opened this issue 3 years ago • 1 comments

Hello. I have a database of telegram sessions in the amount of 200 pieces. There is a telegram bot that winds up reactions under the post. With a new task, the bot launches a function that sorts through the telegrams of the session one by one and puts reactions, with an interval of 10 seconds.

I have a problem: When several tasks are running at the same time (that is, the function that iterates over connections is launched several times) at a certain point it stops connecting and just hangs, what's the problem?

BHIgor avatar Aug 07 '22 08:08 BHIgor

Also, connection closed while receiving data also writes to me, what is the reason?

Do I need to somehow close the connections if the function has already been executed?

BHIgor avatar Aug 07 '22 08:08 BHIgor