From 5885f382454d008ee6b265207c74292a7f504db5 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 8 Feb 2018 19:03:44 +0100 Subject: [PATCH] Remove TODO --- pyrogram/session/session.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index 6a57d5db..a57d1717 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -190,10 +190,6 @@ class Session: def pack(self, message: Message): data = Long(self.current_salt.salt) + self.session_id + message.write() - # MTProto 2.0 requires a minimum of 12 padding bytes. - # I don't get why it says up to 1024 when what it actually needs after the - # required 12 bytes is just extra 0..15 padding bytes for aes - # TODO: It works, but recheck this. What's the meaning of 12..1024 padding bytes? padding = urandom(-(len(data) + 12) % 16 + 12) # 88 = 88 + 0 (outgoing message)