We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15561d1 commit 02da3feCopy full SHA for 02da3fe
1 file changed
pyrogram/session/session.py
@@ -337,7 +337,10 @@ def recv(self):
337
while True:
338
packet = self.connection.recv()
339
340
- if packet is None or (len(packet) == 4 and Int.read(BytesIO(packet)) == -404):
+ if packet is None or len(packet) == 4:
341
+ if packet:
342
+ log.warning("Server sent \"{}\"".format(Int.read(BytesIO(packet))))
343
+
344
if self.is_connected.is_set():
345
Thread(target=self.restart, name="RestartThread").start()
346
break
0 commit comments