Merge pull request 'use js to string' (#15) from dev into main
All checks were successful
Build && Deploy / cargo build (push) Successful in 1m2s

Reviewed-on: #15
This commit is contained in:
akulij 2025-06-01 07:14:29 +00:00
commit 5955fc297d

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]) {
Ok(v) => {
println!("Ok branch, value: {v:?}");
println!("Ok branch, value: {:?}", v.js_to_string());
if v.is_bool() {
v.to_bool().unwrap_or(true)
} else if v.is_int() {