From d4e229b0844eb63ecb611f38d34b88e7159ba200 Mon Sep 17 00:00:00 2001 From: Anton Grigoryev Date: Fri, 13 Mar 2015 19:21:49 +0300 Subject: [PATCH] next step - to decrypt answer with AES --- mtproto.py | 4 ++-- testing.py | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/mtproto.py b/mtproto.py index 651a88bb..966f3bb5 100644 --- a/mtproto.py +++ b/mtproto.py @@ -139,11 +139,11 @@ def deserialize(bytes_io, type_=None, subtype=None): elif type_ == 'int128': x = bytes_io.read(16) elif type_ == 'int256': x = bytes_io.read(32) elif type_ == 'string' or type_ == 'bytes': - l = struct.unpack('