Translating...
This commit is contained in:
parent
250a34045f
commit
d4bdc545a4
BIN
mtproto.php
BIN
mtproto.php
Binary file not shown.
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user