diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index 3900f1d8..beb4affa 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -239,7 +239,7 @@ class Session: else [data] ) - log.debug(data) + log.debug("Received:\n{}".format(data)) for msg in messages: if msg.seq_no % 2 != 0: @@ -366,6 +366,8 @@ class Session: if wait_response: self.results[msg_id] = Result() + log.debug("Sent:\n{}".format(message)) + payload = MTProto.pack( message, self.current_salt.salt,