Answer the question
In order to leave comments, you need to log in
How to handle Payload VK API on Node.Js?
I have a VKontakte bot, I call the inline keyboard, and I need that when a person presses a button, there is no message sent on the button, but a certain command is executed, after reading the VK API I didn’t understand anything, I stick the keyboard.
return message.send(` List of all scripts:\n\n ${text}\n\n To download, enter: Download [0-1000]`,
{
keyboard:JSON.stringify(
{
"inline": true,
"buttons ": [
[
{
"action": {
"type": "callback",
"payload": "{\"button\": \"6\"}",
"label": "In menu "
},
"color ": "primary"
}
]
]
})
});
});
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