fix: TypeError

This commit is contained in:
AliRezaBeigy 2022-05-20 09:50:42 -07:00 committed by GitHub
parent dd51aea4db
commit 37b129fdea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"