Compare commits
4 Commits
d49971995c
...
9be1f3ec1d
| Author | SHA1 | Date | |
|---|---|---|---|
| 9be1f3ec1d | |||
| fe08b42581 | |||
|
|
f5d108d350 | ||
|
|
126708d8fa |
@ -24,6 +24,7 @@ const dialog = {
|
|||||||
},
|
},
|
||||||
start: start_msg,
|
start: start_msg,
|
||||||
leave_application: {
|
leave_application: {
|
||||||
|
literal: "left_application_msg",
|
||||||
handler: leave_application
|
handler: leave_application
|
||||||
},
|
},
|
||||||
ask_question: {}
|
ask_question: {}
|
||||||
|
|||||||
@ -75,6 +75,11 @@ async fn handle_botmessage(bot: Bot, mut db: DB, bm: BotMessage, msg: Message) -
|
|||||||
None => break 'prop true,
|
None => break 'prop true,
|
||||||
};
|
};
|
||||||
let jsuser = to_js(ctx, &tguser).unwrap();
|
let jsuser = to_js(ctx, &tguser).unwrap();
|
||||||
|
info!(
|
||||||
|
"Calling handler {:?} with msg literal: {:?}",
|
||||||
|
handler,
|
||||||
|
bm.literal()
|
||||||
|
);
|
||||||
match handler.call_args(vec![jsuser]) {
|
match handler.call_args(vec![jsuser]) {
|
||||||
Ok(v) => {
|
Ok(v) => {
|
||||||
if v.is_bool() {
|
if v.is_bool() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user