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

namespace MyTelegram.Schema;

///<summary>
/// Disallow only participants of certain chats
/// See <a href="https://corefork.telegram.org/constructor/inputPrivacyValueDisallowChatParticipants" />
///</summary>
[TlObject(0xe94f0f86)]
public sealed class TInputPrivacyValueDisallowChatParticipants : IInputPrivacyRule
{
    public uint ConstructorId => 0xe94f0f86;
    ///<summary>
    /// Disallowed chat IDs
    ///</summary>
    public TVector<long> Chats { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Chats = buffer.Read<TVector<long>>();
    }
}