Skip to content

Can't generate session: BadMsgNotification #403

@Bluscream

Description

@Bluscream
Generating session...
Traceback (most recent call last):
  File "/home/blu/bots/telegram/caligo/generate_session.py", line 71, in <module>
    asyncio.run(create_session())
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/blu/bots/telegram/caligo/generate_session.py", line 63, in create_session
    await client.start()
  File "/home/blu/bots/telegram/caligo/.venv/lib/python3.11/site-packages/pyrogram/methods/utilities/start.py", line 58, in start
    is_authorized = await self.connect()
                    ^^^^^^^^^^^^^^^^^^^^
  File "/home/blu/bots/telegram/caligo/.venv/lib/python3.11/site-packages/pyrogram/methods/auth/connect.py", line 47, in connect
    await self.session.start()
  File "/home/blu/bots/telegram/caligo/.venv/lib/python3.11/site-packages/pyrogram/session/session.py", line 142, in start
    raise e
  File "/home/blu/bots/telegram/caligo/.venv/lib/python3.11/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/blu/bots/telegram/caligo/.venv/lib/python3.11/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions