diff --git a/telethon/crypto/auth_key.py b/telethon/crypto/auth_key.py index 710ebed8..17a7f8ca 100644 --- a/telethon/crypto/auth_key.py +++ b/telethon/crypto/auth_key.py @@ -18,5 +18,6 @@ class AuthKey: """Calculates the new nonce hash based on the current class fields' values """ + new_nonce = new_nonce.to_bytes(32, 'little', signed=True) data = new_nonce + struct.pack('