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

namespace MyTelegram.Schema;

///<summary>
/// Stickerset by short name, from a <a href="https://corefork.telegram.org/api/links#stickerset-links">stickerset deep link »</a>
/// See <a href="https://corefork.telegram.org/constructor/inputStickerSetShortName" />
///</summary>
[TlObject(0x861cc8a0)]
public sealed class TInputStickerSetShortName : IInputStickerSet
{
    public uint ConstructorId => 0x861cc8a0;
    ///<summary>
    /// Short name from a <a href="https://corefork.telegram.org/api/links#stickerset-links">stickerset deep link »</a>
    ///</summary>
    public string ShortName { get; set; }

    public void ComputeFlag()
    {

    }

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

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