diff --git a/TLSharp.Core/Network/MtProtoSender.cs b/TLSharp.Core/Network/MtProtoSender.cs index 2d8babf..4cf59a8 100644 --- a/TLSharp.Core/Network/MtProtoSender.cs +++ b/TLSharp.Core/Network/MtProtoSender.cs @@ -336,9 +336,9 @@ namespace TLSharp.Core.Network switch (errorCode) { case 16: - throw new InvalidOperationException(" msg_id too low (most likely, client time is wrong; it would be worthwhile to synchronize it using msg_id notifications and re-send the original message with the “correct” msg_id or wrap it in a container with a new msg_id if the original message had waited too long on the client to be transmitted)"); + throw new InvalidOperationException("msg_id too low (most likely, client time is wrong; it would be worthwhile to synchronize it using msg_id notifications and re-send the original message with the “correct” msg_id or wrap it in a container with a new msg_id if the original message had waited too long on the client to be transmitted)"); case 17: - throw new InvalidOperationException(" msg_id too high (similar to the previous case, the client time has to be synchronized, and the message re-sent with the correct msg_id)"); + throw new InvalidOperationException("msg_id too high (similar to the previous case, the client time has to be synchronized, and the message re-sent with the correct msg_id)"); case 18: throw new InvalidOperationException("incorrect two lower order msg_id bits (the server expects client message msg_id to be divisible by 4)"); case 19: diff --git a/TeleSharp.TL/TL/TLVector.cs b/TeleSharp.TL/TL/TLVector.cs deleted file mode 100644 index 562ceb0..0000000 --- a/TeleSharp.TL/TL/TLVector.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using TeleSharp.TL; -namespace TeleSharp.TL -{ - [TLObject(481674261)] - public class TLVector : TLObject - { - public override int Constructor - { - get - { - return 481674261; - } - } - - - - public void ComputeFlags() - { - - } - - public override void DeserializeBody(BinaryReader br) - { - - } - - public override void SerializeBody(BinaryWriter bw) - { - bw.Write(Constructor); - - } - } -} diff --git a/TeleSharp.TL/TLVector.cs b/TeleSharp.TL/TLVector.cs index 6c34270..8f35b7d 100644 --- a/TeleSharp.TL/TLVector.cs +++ b/TeleSharp.TL/TLVector.cs @@ -54,6 +54,8 @@ namespace TeleSharp.TL public override void SerializeBody(BinaryWriter bw) { bw.Write(Constructor); + bw.Write(lists.Count()); + foreach (var item in lists.Cast()) { item.SerializeBody(bw); diff --git a/TeleSharp.TL/TeleSharp.TL.csproj b/TeleSharp.TL/TeleSharp.TL.csproj index 446410d..65252c2 100644 --- a/TeleSharp.TL/TeleSharp.TL.csproj +++ b/TeleSharp.TL/TeleSharp.TL.csproj @@ -758,7 +758,6 @@ -