cuml0rd / Telegram-group-and-channel-cloner

A script to clone Telegram chats/groups wrote on Telethon. Albums supported.
6 stars 1 forks source link

Don`t work #1

Open ToxicGANIY opened 11 months ago

ToxicGANIY commented 11 months ago

It gives this error when starting

Traceback (most recent call last): File "C:\Users\серый\Downloads\Telegram-group-and-channel-cloner-main (1)\Telegram-group-and-channel-cloner-main\main.py", line 81, in <module> asyncio.run(main()) File "C:\Program Files\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "C:\Users\серый\Downloads\Telegram-group-and-channel-cloner-main (1)\Telegram-group-and-channel-cloner-main\main.py", line 79, in main await task File "C:\Users\серый\Downloads\Telegram-group-and-channel-cloner-main (1)\Telegram-group-and-channel-cloner-main\main.py", line 38, in func async for message in client.iter_messages(config.SOURCE, reverse=True): File "C:\Users\серый\AppData\Roaming\Python\Python310\site-packages\telethon\requestiter.py", line 58, in __anext__ if await self._init(**self.kwargs): File "C:\Users\серый\AppData\Roaming\Python\Python310\site-packages\telethon\client\messages.py", line 27, in _init self.entity = await self.client.get_input_entity(entity) File "C:\Users\серый\AppData\Roaming\Python\Python310\site-packages\telethon\client\users.py", line 461, in get_input_entity channels = await self(functions.channels.GetChannelsRequest([ File "C:\Users\серый\AppData\Roaming\Python\Python310\site-packages\telethon\client\users.py", line 30, in __call__ return await self._call(self._sender, request, ordered=ordered) File "C:\Users\серый\AppData\Roaming\Python\Python310\site-packages\telethon\client\users.py", line 87, in _call result = await future telethon.errors.rpcerrorlist.AuthKeyUnregisteredError: The key is not registered in the system (caused by GetChannelsRequest)

what next?

cuml0rd commented 10 months ago

Telethon developer`s answer: AuthKeyUnregisteredError means the account is no longer logged-in, for whatever reason. This is not something the library can really fix, so I'm closing the issue. The user simply has to login. Check your session file or recreate it