skip to Main Content

i built a telegram bot with pyrogram, didn’t have any issues until now, the code worked perfectly, suddenly i started getting this error every time i start the bot:
pyrogram.errors.BadMsgNotification: [16] The msg_id is too low, the client time has to be synchronized.
every time i need to delete the session file in order for the bot to start( im using pyrogram 1.4.16)
knowing that my local time is definitely synchronized, plus in pyrogram’s docuentation it says that starting from pyrogram 1.0 the api doesn’t depend on local time to but on an internal clock.
(i tried deploying the bot on google cloud to make sure, and i got the same issue)

2

Answers


  1. I had a similar error and what I did was to update my Pyrogram package in my requirements.txt file. I was running Pyrogram 2.0.63 and updated it to the latest as of this writing which is 2.0.106.
    I redeployed again and the error was no more.

    Login or Signup to reply.
  2. After 25 December 2023 I got the same error and I’ve solved upgrading the library using:

    pip install pyrogram --upgrade

    I report the formal error that I got:

    pyrogram Exception: [16] msg_id too low, the client time has to be synchronized

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search