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

namespace MyTelegram.Schema;

///<summary>
/// Composition of chat participants changed.
/// See <a href="https://corefork.telegram.org/constructor/updateChatParticipants" />
///</summary>
[TlObject(0x7761198)]
public sealed class TUpdateChatParticipants : IUpdate
{
    public uint ConstructorId => 0x7761198;
    ///<summary>
    /// Updated chat participants
    /// See <a href="https://corefork.telegram.org/type/ChatParticipants" />
    ///</summary>
    public MyTelegram.Schema.IChatParticipants Participants { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Participants = buffer.Read<MyTelegram.Schema.IChatParticipants>();
    }
}