diff --git a/src/Client.cs b/src/Client.cs
index a89018d..a5fd6ba 100644
--- a/src/Client.cs
+++ b/src/Client.cs
@@ -325,7 +325,7 @@ namespace WTelegram
if (await FullReadAsync(stream, overhead, 4, ct) != 4)
throw new ApplicationException("Could not read payload length : Connection shut down");
int length = BinaryPrimitives.ReadInt32LittleEndian(overhead);
- if (length <= 0 || length >= 0x10000)
+ if (length <= 0)
throw new ApplicationException("Invalid frame_len");
var payload = new byte[length];
if (await FullReadAsync(stream, payload, length, ct) != length)
diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs
index b4b0c04..0147764 100644
--- a/src/TL.Schema.cs
+++ b/src/TL.Schema.cs
@@ -7073,8 +7073,8 @@ namespace TL
});
///See
- public static Task Account_UpdateStatus(this Client client, bool offline)
- => client.CallAsync(writer =>
+ public static Task Account_UpdateStatus(this Client client, bool offline)
+ => client.CallAsync(writer =>
{
writer.Write(0x6628562C);
writer.Write(offline ? 0x997275B5 : 0xBC799737);