Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't work #2

Open
DanieRomanov opened this issue Jun 13, 2024 · 0 comments
Open

Don't work #2

DanieRomanov opened this issue Jun 13, 2024 · 0 comments

Comments

@DanieRomanov
Copy link

DanieRomanov commented Jun 13, 2024

Error:

D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main>python main.py
Traceback (most recent call last):
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main\main.py", line 81, in <module>
    asyncio.run(main())
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main\main.py", line 79, in main
    await task
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\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\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\requestiter.py", line 74, in __anext__
    if await self._load_next_chunk():
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\messages.py", line 184, in _load_next_chunk
    r = await self.client(self.request)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\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 GetHistoryRequest)

D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main>python main.py
Traceback (most recent call last):
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main\main.py", line 81, in <module>
    asyncio.run(main())
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main\main.py", line 79, in main
    await task
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\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\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\requestiter.py", line 74, in __anext__
    if await self._load_next_chunk():
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\messages.py", line 184, in _load_next_chunk
    r = await self.client(self.request)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\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 GetHistoryRequest)

D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main>python main.py
Traceback (most recent call last):
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main\main.py", line 81, in <module>
    asyncio.run(main())
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main\main.py", line 79, in main
    await task
  File "D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\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\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\requestiter.py", line 74, in __anext__
    if await self._load_next_chunk():
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\messages.py", line 184, in _load_next_chunk
    r = await self.client(self.request)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\site-packages\telethon\client\users.py", line 30, in __call__
    return await self._call(self._sender, request, ordered=ordered)
  File "C:\Users\Danya\AppData\Local\Programs\Python\Python310\lib\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 GetHistoryRequest)

D:\Danechka\Desktop\Telegram-group-and-channel-cloner-main\Telegram-group-and-channel-cloner-main>

Maybe it caused because of my .session file. I don't understand where i need to find this

PHONE_NUMBER - phone number or name of .session file in source path (with no extension)

I have a number with '+' in the start (like '+11111111111'). What should i assign to PHONE_NUMBER

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant