Stop showing "data left after" warning

This commit is contained in:
Lonami Exo
2018-06-25 12:54:33 +02:00
parent 410518aa65
commit 59f6b75391
4 changed files with 13 additions and 6 deletions

View File

@@ -21,6 +21,9 @@ class RpcResult(TLObject):
return RpcResult(msg_id, GzipPacked.from_reader(reader).data, None)
reader.seek(-4)
# This reader.read() will read more than necessary, but it's okay.
# We could make use of MessageContainer's length here, but since
# it's not necessary we don't need to care about it.
return RpcResult(msg_id, reader.read(), None)
def to_dict(self):