https://github.com/Seavegen/tg_leave_chats_and_delete_dialog/ Мне нужно с телеги почистить чаты, нашел данный скрипт, но тут ошибка
python unsuber.py
/home/kali/Desktop/unsuber.py:73: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
/home/kali/Desktop/unsuber.py:23: RuntimeWarning: coroutine 'DialogMethods.get_dialogs' was never awaited
async for dialog in client.get_dialogs():
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Traceback (most recent call last):
File "/home/kali/Desktop/unsuber.py", line 74, in <module>
loop.run_until_complete(main())
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/kali/Desktop/unsuber.py", line 67, in main
leave_groups = await leave_all_groups()
File "/home/kali/Desktop/unsuber.py", line 33, in leave_all_groups
me = await client.get_me()
File "/home/kali/.local/lib/python3.10/site-packages/telethon/client/users.py", line 161, in get_me
me = (await self(
File "/home/kali/.local/lib/python3.10/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "/home/kali/.local/lib/python3.10/site-packages/telethon/client/users.py", line 63, in _call
future = sender.send(request, ordered=ordered)
File "/home/kali/.local/lib/python3.10/site-packages/telethon/network/mtprotosender.py", line 172, in send
raise ConnectionError('Cannot send requests while disconnected')
ConnectionError: Cannot send requests while disconnected
Что не так?