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

namespace MyTelegram.Schema;

///<summary>
/// Location of stickerset thumbnail (see <a href="https://corefork.telegram.org/api/files">files</a>)
/// See <a href="https://corefork.telegram.org/constructor/inputStickerSetThumb" />
///</summary>
[TlObject(0x9d84f3db)]
public sealed class TInputStickerSetThumb : IInputFileLocation
{
    public uint ConstructorId => 0x9d84f3db;
    ///<summary>
    /// Sticker set
    /// See <a href="https://corefork.telegram.org/type/InputStickerSet" />
    ///</summary>
    public MyTelegram.Schema.IInputStickerSet Stickerset { get; set; }

    ///<summary>
    /// Thumbnail version
    ///</summary>
    public int ThumbVersion { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Stickerset = buffer.Read<MyTelegram.Schema.IInputStickerSet>();
        ThumbVersion = buffer.ReadInt32();
    }
}