You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
async def main():
await client.start(phone=phone_number) # Start the client
print("Listening for messages...")
await client.run_until_disconnected() # Keep the client running
if __name__ == "__main__":
import asyncio
asyncio.run(main())
Expected behavior
The program would run until disconnected or user interrupted
Actual behavior
after 10-20h the program stop logging messages. I then have to manually interrupt the program and restart the script.
Traceback
The last log is usually this:
2024-12-21 11:31:39,980 - WARNING - Server sent a very old message with ID xxxxxxxxxxxxxxxx, ignoring (see FAQ for details)
2024-12-21 11:31:39,980 - WARNING - Security error while unpacking a received message: Too many messages had to be ignored consecutively
Telethon version
1.38.1
Python version
3.11.9
Operating system (including distribution name and version)
Windows 10
Other details
No response
Checklist
The error is in the library's code, and not in my own.
I have searched for this issue before posting it and there isn't an open duplicate.
I ran 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:
Code that causes the issue
Expected behavior
The program would run until disconnected or user interrupted
Actual behavior
after 10-20h the program stop logging messages. I then have to manually interrupt the program and restart the script.
Traceback
The last log is usually this:
2024-12-21 11:31:39,980 - WARNING - Server sent a very old message with ID xxxxxxxxxxxxxxxx, ignoring (see FAQ for details)
2024-12-21 11:31:39,980 - WARNING - Security error while unpacking a received message: Too many messages had to be ignored consecutively
Telethon version
1.38.1
Python version
3.11.9
Operating system (including distribution name and version)
Windows 10
Other details
No response
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: