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

namespace MyTelegram.Schema;

///<summary>
/// <a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> with no file access hash, used for example when deleting (<code>unsave=true</code>) wallpapers using <a href="https://corefork.telegram.org/method/account.saveWallPaper">account.saveWallPaper</a>, specifying just the wallpaper ID.
/// See <a href="https://corefork.telegram.org/constructor/inputWallPaperNoFile" />
///</summary>
[TlObject(0x967a462e)]
public sealed class TInputWallPaperNoFile : IInputWallPaper
{
    public uint ConstructorId => 0x967a462e;
    ///<summary>
    /// Wallpaper ID
    ///</summary>
    public long 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.ReadInt64();
    }
}