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

namespace MyTelegram.Schema;

///<summary>
/// <a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a> by slug (a unique ID, obtained from a <a href="https://corefork.telegram.org/api/links#wallpaper-links">wallpaper link »</a>)
/// See <a href="https://corefork.telegram.org/constructor/inputWallPaperSlug" />
///</summary>
[TlObject(0x72091c80)]
public sealed class TInputWallPaperSlug : IInputWallPaper
{
    public uint ConstructorId => 0x72091c80;
    ///<summary>
    /// Unique wallpaper ID
    ///</summary>
    public string Slug { get; set; }

    public void ComputeFlag()
    {

    }

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

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