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

namespace MyTelegram.Schema;

///<summary>
/// Fetch only banned participants
/// See <a href="https://corefork.telegram.org/constructor/channelParticipantsBanned" />
///</summary>
[TlObject(0x1427a5e1)]
public sealed class TChannelParticipantsBanned : IChannelParticipantsFilter
{
    public uint ConstructorId => 0x1427a5e1;
    ///<summary>
    /// Optional filter for searching banned 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();
    }
}