Compare commits
No commits in common. "83e5f86ac2ccb69cecd3eba27bef47ca664e432e" and "1211e78b226e6306208d798966964a4348af94df" have entirely different histories.
83e5f86ac2
...
1211e78b22
@ -4,9 +4,9 @@ const PROJECTS_COUNT = 2
|
||||
|
||||
const start_msg = {
|
||||
buttons: [
|
||||
[{ name: { literal: "leave_application" }, callback_name: "leave_application" }],
|
||||
[{ name: { literal: "show_projects" }, callback_name: "project_0" }],
|
||||
[{ name: { literal: "more_info_btn" }, callback_name: "more_info" }],
|
||||
[{ name: { literal: "leave_application" }, callback_name: "leave_application" }],
|
||||
[{ name: { literal: "ask_question_btn" }, callback_name: "ask_question" }],
|
||||
], // default is `null`
|
||||
replace: true,
|
||||
@ -18,12 +18,8 @@ const dialog = {
|
||||
},
|
||||
buttons: {
|
||||
more_info: {
|
||||
replace: true,
|
||||
buttons: [
|
||||
[{ name: { literal: "leave_application" }, callback_name: "leave_application" }],
|
||||
[{ name: { literal: "show_projects" }, callback_name: "project_0" }],
|
||||
[{ name: { literal: "ask_question_btn" }, callback_name: "ask_question" }],
|
||||
[{ name: { name: "🏠 На главную" }, callback_name: "start" }],
|
||||
[{ name: { name: "На главную" }, callback_name: "start" }],
|
||||
]
|
||||
},
|
||||
start: start_msg,
|
||||
|
||||
@ -1024,6 +1024,8 @@ mod tests {
|
||||
println!("config: {:?}", val);
|
||||
let d: RunnerConfig = DeserializerJS::deserialize_js(&val).unwrap();
|
||||
println!("desr rc: {:?}", d);
|
||||
let val = runner.run_script("start_buttons()").unwrap();
|
||||
println!("Val: {:?}", val.to_string());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user