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

namespace MyTelegram.Schema.Stickers;

///<summary>
/// Check whether the given short name is available
/// <para>Possible errors</para>
/// Code Type Description
/// 400 SHORT_NAME_INVALID The specified short name is invalid.
/// 400 SHORT_NAME_OCCUPIED The specified short name is already in use.
/// See <a href="https://corefork.telegram.org/method/stickers.checkShortName" />
///</summary>
[TlObject(0x284b3639)]
public sealed class RequestCheckShortName : IRequest<IBool>
{
    public uint ConstructorId => 0x284b3639;
    ///<summary>
    /// Short name
    ///</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();
    }
}
