mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Fix connect not saving different authkeys
This commit is contained in:
@@ -38,3 +38,6 @@ class AuthKey:
|
||||
|
||||
# Calculates the message key from the given data
|
||||
return int.from_bytes(sha1(data).digest()[4:20], 'little', signed=True)
|
||||
|
||||
def __eq__(self, other):
|
||||
return isinstance(other, type(self)) and other.key == self.key
|
||||
|
Reference in New Issue
Block a user