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 a duplicate.
I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/master.zip and triggered the bug in the latest version.
Code that causes the issue
i read this try to use telethon in thread because sqlite3 could not use in multi process.
But i found the example could not run.
from telethon.sync uses a different loop and cannot be used the way the documentation states. Not a bug, and you probably don't want to use threads anyway.
Checklist
pip install -U https://github.com/LonamiWebs/Telethon/archive/master.zip
and triggered the bug in the latest version.Code that causes the issue i read this try to use telethon in thread because sqlite3 could not use in multi process. But i found the example could not run.
https://arabic-telethon.readthedocs.io/en/stable/extra/advanced-usage/mastering-asyncio.html#can-i-use-threads
Version info
Traceback