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

namespace MyTelegram.Schema;

///<summary>
/// <a href="https://corefork.telegram.org/api/folders#peer-folders">Peer folder</a>
/// See <a href="https://corefork.telegram.org/constructor/dialogPeerFolder" />
///</summary>
[TlObject(0x514519e2)]
public sealed class TDialogPeerFolder : IDialogPeer
{
    public uint ConstructorId => 0x514519e2;
    ///<summary>
    /// <a href="https://corefork.telegram.org/api/folders#peer-folders">Peer folder ID, for more info click here</a>
    ///</summary>
    public int FolderId { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        FolderId = buffer.ReadInt32();
    }
}