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

namespace MyTelegram.Schema;

///<summary>
/// Folder ID
/// See <a href="https://corefork.telegram.org/constructor/inputChatlistDialogFilter" />
///</summary>
[TlObject(0xf3e0da33)]
public sealed class TInputChatlistDialogFilter : IInputChatlist
{
    public uint ConstructorId => 0xf3e0da33;
    ///<summary>
    /// <a href="https://corefork.telegram.org/api/folders">Folder</a> ID
    ///</summary>
    public int FilterId { get; set; }

    public void ComputeFlag()
    {

    }

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

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