// <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 its numeric ID.
/// See <a href="https://corefork.telegram.org/constructor/inputQuickReplyShortcutId" />
///</summary>
[TlObject(0x1190cf1)]
public sealed class TInputQuickReplyShortcutId : IInputQuickReplyShortcut
{
    public uint ConstructorId => 0x1190cf1;
    ///<summary>
    /// Shortcut ID.
    ///</summary>
    public int ShortcutId { get; set; }

    public void ComputeFlag()
    {

    }

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

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