using System; using System.Collections.Generic; using System.IO; namespace TLSharp.Core.Requests { public class AckRequest : MTProtoRequest { private readonly List _msgs; public AckRequest(List msgs) { _msgs = msgs; } public override void OnSend(BinaryWriter writer) { writer.Write(0x62d6b459); // msgs_ack writer.Write(0x1cb5c415); // Vector writer.Write(_msgs.Count); foreach (ulong messageId in _msgs) { writer.Write(messageId); } } public override void OnResponse(BinaryReader reader) { //throw new NotImplementedException(); } public override void OnException(Exception exception) { throw new NotImplementedException(); } public override bool Confirmed => false; public override bool Responded { get; } } }