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

namespace MyTelegram.Schema.E2e;


[TlObject(0x1DDC7584)]
public sealed class TGroupState : IGroupState
{
    public uint ConstructorId => 0x1DDC7584;
    public TVector<MyTelegram.Schema.E2e.IGroupParticipant> Participants { get; set; }
    public int ExternalPermissions { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Participants = buffer.ReadVector<MyTelegram.Schema.E2e.IGroupParticipant>();
        ExternalPermissions = buffer.ReadInt32();
    }
}