Guest User

Untitled

a guest
May 24th, 2020
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. 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'.",)
  2. Traceback (most recent call last):
  3. File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\telebot\util.py", line 59, in run
  4. task(*args, **kwargs)
  5. File "bot.py", line 147, in photo
  6. user_client.resender(path)
  7. File "user_client.py", line 6, in resender
  8. client = TelegramClient('session_name', api_id, api_hash)
  9. File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\site-packages\telethon\client\telegrambaseclient.py", line 195, in __init__
  10. self._loop = loop or asyncio.get_event_loop()
  11. File "C:\Users\User\AppData\Local\Programs\Python\Python37\lib\asyncio\events.py", line 644, in get_event_loop
  12. % threading.current_thread().name)
  13. RuntimeError: There is no current event loop in thread 'WorkerThread1'.
Advertisement
Add Comment
Please, Sign In to add comment