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

namespace MyTelegram.Schema;

///<summary>
/// Bot or inline keyboard
/// See <a href="https://corefork.telegram.org/constructor/replyInlineMarkup" />
///</summary>
[TlObject(0x48a30254)]
public sealed class TReplyInlineMarkup : IReplyMarkup
{
    public uint ConstructorId => 0x48a30254;
    ///<summary>
    /// Bot or inline keyboard rows
    ///</summary>
    public TVector<MyTelegram.Schema.IKeyboardButtonRow> Rows { get; set; }

    public void ComputeFlag()
    {

    }

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

    public void Deserialize(ref ReadOnlyMemory<byte> buffer)
    {
        Rows = buffer.Read<TVector<MyTelegram.Schema.IKeyboardButtonRow>>();
    }
}