Answer the question
In order to leave comments, you need to log in
Why is the callback button not working?
I built the right keyboard
const { VK, Keyboard} = require('vk-io');
const vk = new VK({token:string,
pollingGroupId:number,
});
const { api } = vk;
api.messages.send({
message:"hi",
user_id:number,
keyboard: Keyboard.builder().callbackButton({
label:"coffe",
payload:{
command:'something',
item:'something'
},
color:'positive'
}).inline(true),
random_id:92037
})
vk.updates.on('message_event', async (ctx) =>{
console.log(ctx)
});
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