fix test: use BotFunction's method by_name

This commit is contained in:
Akulij 2025-05-21 12:24:16 +05:00
parent 1aed17fa30
commit ad58587160

View File

@ -384,7 +384,7 @@ mod tests {
.run_script("function cancel_buttons() {return 'cancelation'}")
.unwrap();
let f = BotFunction("cancel_buttons".to_string());
let f = BotFunction::by_name("cancel_buttons".to_string());
let res = f.call_context(&runner).unwrap();
println!("RES: {res:?}");