mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-20 17:11:59 +03:00
fix: TypeError
This commit is contained in:
parent
dd51aea4db
commit
37b129fdea
|
@ -143,7 +143,7 @@ class MTProtoState:
|
|||
|
||||
msg_key = body[8:24]
|
||||
aes_key, aes_iv = self._calc_key(self.auth_key.key, msg_key, False)
|
||||
body = AES.decrypt_ige(body[24:], aes_key, aes_iv)
|
||||
body = AES.decrypt_ige(bytes(body[24:]), aes_key, aes_iv)
|
||||
|
||||
# https://core.telegram.org/mtproto/security_guidelines
|
||||
# Sections "checking sha256 hash" and "message length"
|
||||
|
|
Loading…
Reference in New Issue
Block a user