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

[401 AUTH_KEY_UNREGISTERED] - The key is not registered in the system #479

Open
pierwzw opened this issue Nov 18, 2023 · 1 comment
Open
Labels

Comments

@pierwzw
Copy link

pierwzw commented Nov 18, 2023

when i execute 'python media_downloader.py',it shows:
Traceback (most recent call last): File "D:\Projects\telegram_media_downloader\media_downloader.py", line 376, in <module> main() File "D:\Projects\telegram_media_downloader\media_downloader.py", line 360, in main updated_config = asyncio.get_event_loop().run_until_complete( File "D:\Program Files\python\python3.10.6\lib\asyncio\base_events.py", line 646, in run_until_complete return future.result() File "D:\Projects\telegram_media_downloader\media_downloader.py", line 311, in begin_import await client.start() File "D:\Program Files\python\python3.10.6\lib\site-packages\pyrogram\methods\utilities\start.py", line 68, in start await self.invoke(raw.functions.updates.GetState()) File "D:\Program Files\python\python3.10.6\lib\site-packages\pyrogram\methods\advanced\invoke.py", line 79, in invoke r = await self.session.invoke( File "D:\Program Files\python\python3.10.6\lib\site-packages\pyrogram\session\session.py", line 389, in invoke return await self.send(query, timeout=timeout) File "D:\Program Files\python\python3.10.6\lib\site-packages\pyrogram\session\session.py", line 357, in send RPCError.raise_it(result, type(data)) File "D:\Program Files\python\python3.10.6\lib\site-packages\pyrogram\errors\rpc_error.py", line 91, in raise_it raise getattr( pyrogram.errors.exceptions.unauthorized_401.AuthKeyUnregistered: Telegram says: [401 AUTH_KEY_UNREGISTERED] - The key is not registered in the system. Delete your session file and login again (caused by "updates.GetState")

how to register the key and solve this?
help!

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity in the past 45 days. It will be closed if no further activity occurs in the next 7 days. Thank you for your contributions.

@stale stale bot added the stale label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant