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

namespace MyTelegram.Schema;

///<summary>
/// Represents a deleted forum topic.
/// See <a href="https://corefork.telegram.org/constructor/forumTopicDeleted" />
///</summary>
[TlObject(0x23f109b)]
public sealed class TForumTopicDeleted : IForumTopic
{
    public uint ConstructorId => 0x23f109b;
    ///<summary>
    /// The ID of the deleted forum topic.
    ///</summary>
    public int Id { get; set; }

    public void ComputeFlag()
    {

    }

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

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