// <auto-generated/>
// ReSharper disable All

namespace MyTelegram.Schema;

///<summary>
/// Fetch only kicked participants
/// See <a href="https://corefork.telegram.org/constructor/channelParticipantsKicked" />
///</summary>
[TlObject(0xa3b54985)]
public sealed class TChannelParticipantsKicked : IChannelParticipantsFilter
{
    public uint ConstructorId => 0xa3b54985;
    ///<summary>
    /// Optional filter for searching kicked participants by name (otherwise empty)
    ///</summary>
    public string Q { get; set; }

    public void ComputeFlag()
    {

    }

    public void Serialize(IBufferWriter<byte> writer)
    {
        ComputeFlag();
        writer.Write(ConstructorId);
        writer.Write(Q);
    }

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Q = buffer.ReadString();
    }
}