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

namespace MyTelegram.Schema;

///<summary>
/// Inline keyboard row
/// See <a href="https://corefork.telegram.org/constructor/keyboardButtonRow" />
///</summary>
[TlObject(0x77608b83)]
public sealed class TKeyboardButtonRow : IKeyboardButtonRow
{
    public uint ConstructorId => 0x77608b83;
    ///<summary>
    /// Bot or inline keyboard buttons
    ///</summary>
    public TVector<MyTelegram.Schema.IKeyboardButton> Buttons { get; set; }

    public void ComputeFlag()
    {

    }

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

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