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

namespace MyTelegram.Schema;

///<summary>
/// Fetch only participants that are also contacts
/// See <a href="https://corefork.telegram.org/constructor/channelParticipantsContacts" />
///</summary>
[TlObject(0xbb6ae88d)]
public sealed class TChannelParticipantsContacts : IChannelParticipantsFilter
{
    public uint ConstructorId => 0xbb6ae88d;
    ///<summary>
    /// Optional search query for searching contact participants by name
    ///</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();
    }
}