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

namespace MyTelegram.Schema.Updates;

///<summary>
/// The difference is <a href="https://corefork.telegram.org/api/updates#recovering-gaps">too long</a>, and the specified state must be used to refetch updates.
/// See <a href="https://corefork.telegram.org/constructor/updates.differenceTooLong" />
///</summary>
[TlObject(0x4afe8f6d)]
public sealed class TDifferenceTooLong : IDifference
{
    public uint ConstructorId => 0x4afe8f6d;
    ///<summary>
    /// The new state to use.
    ///</summary>
    public int Pts { get; set; }

    public void ComputeFlag()
    {

    }

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

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