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

namespace MyTelegram.Schema;

///<summary>
/// A new stickerset was installed
/// See <a href="https://corefork.telegram.org/constructor/updateNewStickerSet" />
///</summary>
[TlObject(0x688a30aa)]
public sealed class TUpdateNewStickerSet : IUpdate
{
    public uint ConstructorId => 0x688a30aa;
    ///<summary>
    /// The installed stickerset
    /// See <a href="https://corefork.telegram.org/type/messages.StickerSet" />
    ///</summary>
    public MyTelegram.Schema.Messages.IStickerSet Stickerset { get; set; }

    public void ComputeFlag()
    {

    }

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

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