set literal for leave_application #3

Merged
akulij merged 3 commits from dev into main 2025-05-31 09:33:57 +00:00
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@ const dialog = {
},
start: start_msg,
leave_application: {
literal: "left_application_msg",
handler: leave_application
},
ask_question: {}

View File

@ -75,6 +75,11 @@ async fn handle_botmessage(bot: Bot, mut db: DB, bm: BotMessage, msg: Message) -
None => break 'prop true,
};
let jsuser = to_js(ctx, &tguser).unwrap();
info!(
"Calling handler {:?} with msg literal: {:?}",
handler,
bm.literal()
);
match handler.call_args(vec![jsuser]) {
Ok(v) => {
if v.is_bool() {