-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory continues to increase #4375
Comments
If the handlers aren't being called fast enough, the only other thing the library could do is drop updates, but that won't work for everyone. |
I didn't add any event_handlers. Is there a direct relationship between the size of _updates_queue and memory?
|
It seemed like there was from your first post. But if you periodically clear the queue and memory continues to increase, then I guess not. |
I don't need to receive new messages, and my application will actively request the Telegram server when needed. Can I delete it? |
Code that causes the issue
message = await self.client.send_message(entity=int(chat_id), message=message_text)
Expected behavior
none
Actual behavior
Memory overflow, memory exceeds normal value.
Traceback
Telethon version
1.34.0
Python version
3.10.12
Operating system (including distribution name and version)
Ubuntu 22.04
Other details
I have many groups, and each group receives many messages every second.
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip
and triggered the bug in the latest version.The text was updated successfully, but these errors were encountered: