Fix session ID is also signed since d4d7aa9

This commit is contained in:
Lonami Exo 2017-12-07 12:22:40 +01:00
parent 1d19bb22a5
commit 0e0bc6ecbc

View File

@ -155,7 +155,7 @@ class MtProtoSender:
:param message: the TLMessage to be sent.
"""
plain_text = \
struct.pack('<qQ', self.session.salt, self.session.id) \
struct.pack('<qq', self.session.salt, self.session.id) \
+ bytes(message)
msg_key = utils.calc_msg_key(plain_text)