A
A
Alexey Zavialov2021-02-14 20:41:33
In contact with
Alexey Zavialov, 2021-02-14 20:41:33

Condition for the VK button?

The question arose of how to put a condition not on a message, but on a separate button so as not to do many conditions.


return bot (`your bank account is empty`,
{
keyboard:JSON.stringify(
{
"one_time": false,
"inline": message.user.besseda,
"buttons":[
[{
"action": {
"type" : "text",
"payload": "{}",
"label": ` ${utils.sp(idey)}$`
},
"color": "default"
},
{
"action": {
"type" : "text",
"payload": "{}",
"label": ` ${utils.sp(idey2)}$`
},
"color": "default"
},
{
"action": {
"type": "text",
"payload": "{}",
"label": ` ${utils.sp(idey3)}$`
},
"color": "default"
}],
[{
"action": {
"type": "text",
"payload": "{}",
"label": `${text}`
},
"color": "positive"
}],
[{
"action": {
"type": "text",
"payload": "{}",
"label": `◀ To the Primary section`
},
"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 question

Ask a Question

731 491 924 answers to any question