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

Error when running the bot #39

Closed
greyhat94 opened this issue Jan 4, 2024 · 1 comment
Closed

Error when running the bot #39

greyhat94 opened this issue Jan 4, 2024 · 1 comment

Comments

@greyhat94
Copy link

I was trying to run the bot, and it gave me this error:


Traceback (most recent call last):
  File "C:\Users\umile\Desktop\Tools\Save-Restricted-Bot-main\main.py", line 22, in <module>
    acc.start()
  File "C:\Users\umile\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyrogram\sync.py", line 66, in async_to_sync_wrap
    return loop.run_until_complete(coroutine)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\umile\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "C:\Users\umile\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyrogram\methods\utilities\start.py", line 58, in start
    is_authorized = await self.connect()
                    ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\umile\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyrogram\methods\auth\connect.py", line 47, in connect
    await self.session.start()
  File "C:\Users\umile\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyrogram\session\session.py", line 142, in start
    raise e
  File "C:\Users\umile\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyrogram\session\session.py", line 109, in start
    await self.send(raw.functions.Ping(ping_id=0), timeout=self.START_TIMEOUT)
  File "C:\Users\umile\AppData\Local\Programs\Python\Python311\Lib\site-packages\pyrogram\session\session.py", line 333, in send
    raise BadMsgNotification(result.error_code)
pyrogram.errors.BadMsgNotification: [16] The msg_id is too low, the client time has to be synchronized.

How can I fix it?

@greyhat94
Copy link
Author

greyhat94 commented Jan 12, 2024

I've fixed this error by updating Pyrogram and installing ntplib.

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