feature: variants #22
16
mainbot.js
16
mainbot.js
@ -13,7 +13,10 @@ const start_msg = {
|
||||
};
|
||||
const dialog = {
|
||||
commands: {
|
||||
start: start_msg,
|
||||
start: {
|
||||
meta: true,
|
||||
...start_msg
|
||||
},
|
||||
},
|
||||
buttons: {
|
||||
more_info: {
|
||||
@ -41,6 +44,17 @@ const dialog = {
|
||||
state: "none"
|
||||
},
|
||||
},
|
||||
variants: {
|
||||
start: {
|
||||
free_tgads: {
|
||||
...start_msg,
|
||||
buttons: [
|
||||
[{ name: { literal: "free_doc_btn" }, callback_name: "free_doc" }],
|
||||
...start_msg.buttons,
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
function leave_application(user) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user