Protected
currentThe keyboard must be attached to the message
Does the keyboard close after pressing the button
Protected
rowsRows with all buttons
Returns custom tag
Protected
addAdds a button to the current row
Protected
addAdds a wide button to the new row
VK Apps button, occupies the entire keyboard width
builder.applicationButton({
label: 'LiveWidget',
appId: 6232540,
ownerId: -157525928
})
Allows without sending a message from the user to receive a notification of a button click and perform the necessary action
builder.callbackButton({
label: 'Buy a coffee',
payload: {
command: 'buy',
item: 'coffee'
}
});
Clones the builder with all the settings
User location request button, occupies the entire keyboard width
builder.locationRequestButton({
payload: {
command: 'order_delivery'
}
})
VK Pay button, occupies the entire keyboard width
builder.payButton({
hash: {
action: 'transfer-to-group',
group_id: 1,
aid: 10
}
})
Text button, can be colored
builder.textButton({
label: 'Buy a coffee',
payload: {
command: 'buy',
item: 'coffee'
},
color: Keyboard.POSITIVE_COLOR
});
URL button
builder.urlButton({
label: 'Buy a coffee',
url: 'https://coffee.mania/buy'
});
Generated using TypeDoc
Current row of buttons