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

namespace MyTelegram.Schema;

///<summary>
/// A participant that left the channel/supergroup
/// See <a href="https://corefork.telegram.org/constructor/channelParticipantLeft" />
///</summary>
[TlObject(0x1b03f006)]
public sealed class TChannelParticipantLeft : IChannelParticipant
{
    public uint ConstructorId => 0x1b03f006;
    ///<summary>
    /// The peer that left
    /// See <a href="https://corefork.telegram.org/type/Peer" />
    ///</summary>
    public MyTelegram.Schema.IPeer Peer { get; set; }

    public void ComputeFlag()
    {

    }

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

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