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

namespace MyTelegram.Schema.Stories;

///<summary>
/// See <a href="https://corefork.telegram.org/constructor/stories.canSendStoryCount" />
///</summary>
[TlObject(0xc387c04e)]
public sealed class TCanSendStoryCount : ICanSendStoryCount
{
    public uint ConstructorId => 0xc387c04e;
    public int CountRemains { get; set; }

    public void ComputeFlag()
    {

    }

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

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