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

namespace MyTelegram.Schema;

///<summary>
/// Represents a previously active story, that was deleted
/// See <a href="https://corefork.telegram.org/constructor/storyItemDeleted" />
///</summary>
[TlObject(0x51e6ee4f)]
public sealed class TStoryItemDeleted : IStoryItem
{
    public uint ConstructorId => 0x51e6ee4f;
    ///<summary>
    /// Story ID
    ///</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();
    }
}