Answer the question
In order to leave comments, you need to log in
How to generate a VK keyboard?
There is a VK keyboard, which is generated as follows:
var btn =Keyboard.builder()
.textButton({
label: 'Баланс',
payload: {
command: 'bal'
}
})
.row()
.textButton({
label: 'хочу + 100р',
payload: {
command: 'add_100'
}
})
.row()
.textButton({
label: 'хочу - 100р',
payload: {
command: 'withdrow_100'
},
color: Keyboard.PRIMARY_COLOR
})
.textButton({
label: 'Профиль',
payload: {command: 'profile'},
color: Keyboard.PRIMARY_COLOR
});
var button1 = ["Баланс","bal",Keyboard.PRIMARY_COLOR];
var button2 = ["Баланс2","bal2",Keyboard.PRIMARY_COLOR];
var button3 = ["Баланс3","bal3",Keyboard.PRIMARY_COLOR];
var btn=some_function();
var btn =Keyboard.builder()
.textButton({
label: 'Баланс',
payload: {
command: 'bal1'
},
color: Keyboard.PRIMARY_COLOR
})
.textButton({
label: 'Баланс2',
payload: {
command: 'bal2'
},
color: Keyboard.PRIMARY_COLOR
})
.row()
.textButton({
label: 'Баланс2',
payload: {command: 'bal3'},
color: Keyboard.PRIMARY_COLOR
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question