Inheritance: TeleSharp.TL.TLMethod
Ejemplo n.º 1
0
        public async Task SendPingAsync()
        {
            var pingRequest = new Requests.PingRequest();

            await SendRpcRequest(pingRequest);
        }
Ejemplo n.º 2
0
        public async Task SendPingAsync()
        {
            var pingRequest = new PingRequest();
            using (var memory = new MemoryStream())
            using (var writer = new BinaryWriter(memory))
            {
                pingRequest.SerializeBody(writer);
                await Send(memory.ToArray(), pingRequest);
            }

            await Receive(pingRequest);
        }