diff --git a/src/TL.cs b/src/TL.cs index 5f0d60b..19dbd4d 100644 --- a/src/TL.cs +++ b/src/TL.cs @@ -204,7 +204,7 @@ namespace TL bytes = reader.ReadBytes(length); else { - length = reader.ReadInt16() + (reader.ReadByte() << 16); + length = reader.ReadUInt16() + (reader.ReadByte() << 16); bytes = reader.ReadBytes(length); length += 3; }