const {VK, Keyboard } = require('vk-io');
Keyboard.keyboard(rows, options); // => KeyboardBuilder
[
Keyboard.textButton({
label: 'Buy a tea',
payload: {
command: 'buy',
item: 'tea'
},
color: Keyboard.POSITIVE_COLOR
}),
Keyboard.textButton({
label: 'Buy a coffee',
payload: {
command: 'buy',
item: 'coffee'
},
color: Keyboard.POSITIVE_COLOR
})
],
Keyboard.keyboard([
// Одна кнопка
[
Keyboard.textButton({
label: 'Go back',
payload: {
command: 'back'
}
})
],
]);