Skip to content

msg_id too low #79

@androidacy-user

Description

@androidacy-user

Pyrogram crashes, insisting time needs synced, however:

$ timedatectl status
               Local time: Tue 2023-06-20 13:30:42 EDT
           Universal time: Tue 2023-06-20 17:30:42 UTC
                 RTC time: Tue 2023-06-20 17:30:42
                Time zone: US/Eastern (EDT, -0400)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Full stack:

Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/userbot/userge-x/userge/__main__.py", line 14, in <module>
    userge.begin()
  File "/home/userbot/userge-x/userge/core/client.py", line 201, in begin
    self.loop.run_until_complete(self.start())
  File "/usr/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()
  File "/home/userbot/userge-x/userge/core/client.py", line 155, in start
    await super().start()
  File "/home/userbot/userge-x/venv/lib/python3.9/site-packages/pyrogram/methods/utilities/start.py", line 52, in start
    is_authorized = await self.connect()
  File "/home/userbot/userge-x/venv/lib/python3.9/site-packages/pyrogram/methods/auth/connect.py", line 46, in connect
    await self.session.start()
  File "/home/userbot/userge-x/venv/lib/python3.9/site-packages/pyrogram/session/session.py", line 142, in start
    raise e
  File "/home/userbot/userge-x/venv/lib/python3.9/site-packages/pyrogram/session/session.py", line 109, in start
    await self._send(raw.functions.Ping(ping_id=0), timeout=self.START_TIMEOUT)
  File "/home/userbot/userge-x/venv/lib/python3.9/site-packages/pyrogram/session/session.py", line 334, in _send
    raise BadMsgNotification(result.error_code)
pyrogram.errors.BadMsgNotification: [16] The msg_id is too low, the client time has to be synchronized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions