mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Create DeleteChatUserRequest
This commit is contained in:
parent
25e1015e82
commit
a7893c6d0d
44
TLSharp.Core/Requests/DeleteChatUserRequest
Normal file
44
TLSharp.Core/Requests/DeleteChatUserRequest
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using TLSharp.Core.MTProto;
|
||||||
|
|
||||||
|
namespace TLSharp.Core.Requests
|
||||||
|
{
|
||||||
|
class DeleteChatUserRequest : MTProtoRequest
|
||||||
|
{
|
||||||
|
private int _chatID;
|
||||||
|
|
||||||
|
private InputUserContactConstructor _user;
|
||||||
|
private string _title;
|
||||||
|
|
||||||
|
|
||||||
|
public Messages_statedMessageConstructor message;
|
||||||
|
public DeleteChatUserRequest(int chatID, InputUserContactConstructor user)
|
||||||
|
{
|
||||||
|
_chatID = chatID;
|
||||||
|
_user = user;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnSend(BinaryWriter writer)
|
||||||
|
{
|
||||||
|
writer.Write(0xc3c5cd23);
|
||||||
|
writer.Write(_chatID);
|
||||||
|
_user.Write(writer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnResponse(BinaryReader reader)
|
||||||
|
{
|
||||||
|
message = TL.Parse<Messages_statedMessageConstructor>(reader);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnException(Exception exception)
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool Confirmed { get { return true; } }
|
||||||
|
private readonly bool responded;
|
||||||
|
public override bool Responded { get { return responded; } }
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue