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

namespace MyTelegram.Schema;

///<summary>
/// Allow all participants of certain chats
/// See <a href="https://corefork.telegram.org/constructor/privacyValueAllowChatParticipants" />
///</summary>
[TlObject(0x6b134e8e)]
public sealed class TPrivacyValueAllowChatParticipants : IPrivacyRule
{
    public uint ConstructorId => 0x6b134e8e;
    ///<summary>
    /// Allowed chats
    ///</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>>();
    }
}