mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Clearer error message
This commit is contained in:
parent
3dde55db39
commit
a65f8e2655
@ -72,7 +72,7 @@ def unpack(b: BytesIO, session_id: bytes, auth_key: bytes, auth_key_id: bytes) -
|
||||
left = [[left[i:i + 8] for i in range(0, len(left), 8)] for left in left]
|
||||
left = "\n".join(" ".join(x for x in left) for left in left)
|
||||
|
||||
raise ValueError(f"Unknown constructor found: {hex(e.args[0])}\n{left}")
|
||||
raise ValueError(f"The server sent an unknown constructor: {hex(e.args[0])}\n{left}")
|
||||
|
||||
# https://core.telegram.org/mtproto/security_guidelines#checking-sha256-hash-value-of-msg-key
|
||||
# https://core.telegram.org/mtproto/security_guidelines#checking-message-length
|
||||
|
Loading…
x
Reference in New Issue
Block a user