Translating...

This commit is contained in:
Daniil Gentili 2016-06-28 16:28:25 +02:00
parent 250a34045f
commit d4bdc545a4
3 changed files with 1 additions and 0 deletions

BIN
TL.php

Binary file not shown.

Binary file not shown.

View File

@ -111,6 +111,7 @@ class Session:
if auth_key_id == b'\x00\x00\x00\x00\x00\x00\x00\x00': if auth_key_id == b'\x00\x00\x00\x00\x00\x00\x00\x00':
# No encryption - Plain text # No encryption - Plain text
(message_id, message_length) = struct.unpack("<8sI", packet[12:24]) (message_id, message_length) = struct.unpack("<8sI", packet[12:24])
print struct.unpack("<8sI", packet[12:24])
data = packet[24:24+message_length] data = packet[24:24+message_length]
elif auth_key_id == self.auth_key_id: elif auth_key_id == self.auth_key_id:
message_key = packet[12:28] message_key = packet[12:28]