Traceback (most recent call last):
File "C:\Users\user\PycharmProjects\pythonProject2\main.py", line 101, in <module>
asyncio.run(main())
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 646, in run_until_complete
return future.result()
File "C:\Users\user\PycharmProjects\pythonProject2\main.py", line 47, in main
async with TelegramClient('name', API_ID, API_HASH) as client:
File "C:\Users\user\PycharmProjects\pythonProject2\venv\lib\site-packages\telethon\client\auth.py", line 713, in __aenter__
return await self.start()
File "C:\Users\user\PycharmProjects\pythonProject2\venv\lib\site-packages\telethon\client\auth.py", line 182, in _start
await self.sign_in(bot_token=bot_token)
File "C:\Users\user\PycharmProjects\pythonProject2\venv\lib\site-packages\telethon\client\auth.py", line 368, in sign_in
result = await self(request)
File "C:\Users\user\PycharmProjects\pythonProject2\venv\lib\site-packages\telethon\client\users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "C:\Users\user\PycharmProjects\pythonProject2\venv\lib\site-packages\telethon\client\users.py", line 84, in _call
result = await future
telethon.errors.rpcerrorlist.ApiIdPublishedFloodError: This API id was published somewhere, you can't use it now (caused by ImportBotAuthorizationRequest)
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x00000280ADCC1240>
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in __del__
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 750, in call_soon
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 515, in _check_closed
RuntimeError: Event loop is closed