Dineshkarthik / telegram_media_downloader

Download media files from a telegram conversation/chat/channel up to 2GiB per file
MIT License
2.08k stars 359 forks source link

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

Open pierwzw opened 9 months ago

pierwzw commented 9 months ago

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!

stale[bot] commented 5 months ago

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.