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

BadMsgNotification: [17] The msg_id is too high, the client time has to be synchronized. #156

Open
b0r1sOm4g0 opened this issue Jul 4, 2024 · 1 comment

Comments

@b0r1sOm4g0
Copy link

I'm trying to run it on Windows 11, Python 3.11 and I get the following error:
image

BadMsgNotification: [17] The msg_id is too high, the client time has to be synchronized. Traceback (most recent call last): File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\main.py", line 13, in <module> asyncio.run(main()) File "C:\Users\b0r1s\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Users\b0r1s\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\b0r1s\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 654, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\main.py", line 8, in main await process() File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\bot\utils\launcher.py", line 83, in process await register_sessions() File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\bot\core\registrator.py", line 26, in register_sessions async with session: File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\venv\Lib\site-packages\pyrogram\client.py", line 311, in __aenter__ return await self.start() ^^^^^^^^^^^^^^^^^^ File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\venv\Lib\site-packages\pyrogram\methods\utilities\start.py", line 62, in start await self.authorize() File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\venv\Lib\site-packages\pyrogram\client.py", line 359, in authorize sent_code = await self.send_code(self.phone_number) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\venv\Lib\site-packages\pyrogram\methods\auth\send_code.py", line 79, in send_code return types.SentCode._parse(r) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\b0r1s\Desktop\Bots\TapSwapBot-shamhi\TapSwapBot\venv\Lib\site-packages\pyrogram\types\authorization\sent_code.py", line 58, in _parse type=enums.SentCodeType(type(sent_code.type)), ^^^^^^^^^^^^^^ AttributeError: 'BadMsgNotification' object has no attribute 'type'

@VasNick8064
Copy link

Synchronize your time and try using Py3.10

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

2 participants