Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2020-05-25 01:09:11,665 (util.py:65 WorkerThread1) ERROR - TeleBot: "RuntimeError occurred, args=("There is no current event loop in thread 'WorkerThread1'.",)
- Traceback (most recent call last):
- File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\telebot\util.py", line 59, in run
- task(*args, **kwargs)
- File "bot.py", line 147, in photo
- user_client.resender(path)
- File "user_client.py", line 6, in resender
- client = TelegramClient('session_name', api_id, api_hash)
- File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\telethon\client\telegrambaseclient.py", line 195, in __init__
- self._loop = loop or asyncio.get_event_loop()
- File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\asyncio\events.py", line 644, in get_event_loop
- % threading.current_thread().name)
- RuntimeError: There is no current event loop in thread 'WorkerThread1'.
Advertisement
Add Comment
Please, Sign In to add comment