Update client.py

fix connection lost error 
https://github.com/Mayuri-Chan/pyrofork/issues/42
This commit is contained in:
SeriousNuts 2025-02-08 16:20:17 +07:00 committed by GitHub
parent 6a16933aad
commit 1e94e89f37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -622,7 +622,7 @@ class Client(Methods):
limit=pts
)
)
except ChannelPrivate:
except (ChannelPrivate, OSError):
pass
else:
if not isinstance(diff, raw.types.updates.ChannelDifferenceEmpty):