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

namespace MyTelegram.Schema.Stickers;

///<summary>
/// Suggests a short name for a given stickerpack name
/// <para>Possible errors</para>
/// Code Type Description
/// 400 TITLE_INVALID The specified stickerpack title is invalid.
/// See <a href="https://corefork.telegram.org/method/stickers.suggestShortName" />
///</summary>
[TlObject(0x4dafc503)]
public sealed class RequestSuggestShortName : IRequest<MyTelegram.Schema.Stickers.ISuggestedShortName>
{
    public uint ConstructorId => 0x4dafc503;
    ///<summary>
    /// Sticker pack name
    ///</summary>
    public string Title { get; set; }

    public void ComputeFlag()
    {

    }

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

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