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
I tried to fix the issue using sync-stale version of Telethon. But there are no type ChatBannedRights i need.
i used commands: pip3 uninstall telethon pip3 install --no-cache --upgrade git+https://github.com/LonamiWebs/Telethon@sync-stale
to install the sync-stale version.
And got error ImportError: cannot import name 'ChatBannedRights' from 'telethon.tl.types' (/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/telethon/tl/types/__init__.py) when tried to import type:
fromtelethon.tl.typesimportChatBannedRights
So basically there are two issues:
Im getting error "There is no current event loop in thread 'Thread-1'." while using Flask and Telethon
There are no type ChatBannedRights in sync-stale version of Telethon.
I want to use Telethon from the Flask Web App. But when I am running it, I am getting following error:
RuntimeError: There is no current event loop in thread 'Thread-1'.Code that causes the issue
I tried to fix the issue using sync-stale version of Telethon. But there are no type ChatBannedRights i need.
i used commands:
pip3 uninstall telethonpip3 install --no-cache --upgrade git+https://github.com/LonamiWebs/Telethon@sync-staleto install the sync-stale version.
And got error
ImportError: cannot import name 'ChatBannedRights' from 'telethon.tl.types' (/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/telethon/tl/types/__init__.py)when tried to import type:So basically there are two issues:
Hope you can help me