TelegramPlayGround / pyrogram

PyroGramFORK | Telegram MTProto API framework in Python for users and bots | PyroGramFORK
https://telegramplayground.github.io/pyrogram/
GNU Lesser General Public License v3.0
79 stars 13 forks source link

Fix stop infinite loops in reply_to #83

Closed DW-Frog closed 1 month ago

DW-Frog commented 1 month ago

e.g. https://t.me/nash_prezident_putin/220197

Sample code

  chat = await app.get_chat(-1001185872128)
  print(await app.get_messages(chat_id=chat.id, message_ids=220197))

Error content

  ../pyrogram/raw/core/primitives/int.py", line 33, in __new__
    return value.to_bytes(cls.SIZE, "little", signed=signed)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RecursionError: maximum recursion depth exceeded while calling a Python object
SpEcHiDe commented 1 month ago

Thank You 🍾