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

namespace MyTelegram.Schema.Help;

///<summary>
/// Get changelog of current app.<br>
/// Typically, an <a href="https://corefork.telegram.org/constructor/updates">updates</a> constructor will be returned, containing one or more <a href="https://corefork.telegram.org/constructor/updateServiceNotification">updateServiceNotification</a> updates with app-specific changelogs.
/// See <a href="https://corefork.telegram.org/method/help.getAppChangelog" />
///</summary>
[TlObject(0x9010ef6f)]
public sealed class RequestGetAppChangelog : IRequest<MyTelegram.Schema.IUpdates>
{
    public uint ConstructorId => 0x9010ef6f;
    ///<summary>
    /// Previous app version
    ///</summary>
    public string PrevAppVersion { get; set; }

    public void ComputeFlag()
    {

    }

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

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