diff --git a/pyrogram/session/session.py b/pyrogram/session/session.py index 3c34f578..3387b3d2 100644 --- a/pyrogram/session/session.py +++ b/pyrogram/session/session.py @@ -286,7 +286,7 @@ class Session: else [data] ) - log.debug(data) + log.debug("Received:\n{}".format(data)) for msg in messages: if msg.seq_no % 2 != 0: @@ -406,6 +406,8 @@ class Session: if wait_response: self.results[msg_id] = Result() + log.debug("Sent:\n{}".format(message)) + payload = self.pack(message) try: