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

namespace MyTelegram.Schema;

///<summary>
/// Selects a <a href="https://corefork.telegram.org/api/business#quick-reply-shortcuts">quick reply shortcut</a> by name.
/// See <a href="https://corefork.telegram.org/constructor/inputQuickReplyShortcut" />
///</summary>
[TlObject(0x24596d41)]
public sealed class TInputQuickReplyShortcut : IInputQuickReplyShortcut
{
    public uint ConstructorId => 0x24596d41;
    ///<summary>
    /// Shortcut name.
    ///</summary>
    public string Shortcut { get; set; }

    public void ComputeFlag()
    {

    }

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

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