use js to string
Some checks failed
Build && Deploy / cargo build (push) Has been cancelled

This commit is contained in:
Akulij 2025-06-01 12:14:06 +05:00
parent f8628a11f5
commit 8742740e6e

View File

@ -157,7 +157,7 @@ async fn handle_callback(bot: Bot, mut db: DB, bm: BotMessage, q: CallbackQuery)
); );
match handler.call_args(vec![jsuser]) { match handler.call_args(vec![jsuser]) {
Ok(v) => { Ok(v) => {
println!("Ok branch, value: {v:?}"); println!("Ok branch, value: {:?}", v.js_to_string());
if v.is_bool() { if v.is_bool() {
v.to_bool().unwrap_or(true) v.to_bool().unwrap_or(true)
} else if v.is_int() { } else if v.is_int() {