fn run_onebot11_app(py: Python) -> PyResult<&PyAny> {
        pyo3_asyncio::tokio::future_into_py(py, async {
            let app = walle_v11::app::OneBot11::new(
                walle_core::AppConfig::default(),
                Box::new(walle_v11::DefaultHandler),
            )
            .arc();
            app.run().await.unwrap();
            Ok(PyOneBot(OBApp::V11(app)))
        })
    }
/// just build and run a onebot11 application
just build and run a onebot11 application
just build and run a onebot11 application
fn run_onebot11_app(py: Python) -> PyResult<&PyAny> {
        pyo3_asyncio::tokio::future_into_py(py, async {
            let app = walle_v11::app::OneBot11::new(
                walle_core::AppConfig::default(),
                Box::new(walle_v11::DefaultHandler),
            )
            .arc();
            app.run().await.unwrap();
            Ok(PyOneBot(OBApp::V11(app)))
        })
    }
fn run_onebot11_app ( py : Python ) -> PyResult < & PyAny > { pyo3_asyncio :: tokio :: future_into_py ( py , async { let app = walle_v11 :: app :: OneBot11 :: new ( walle_core :: AppConfig :: default ( ) , Box :: new ( walle_v11 :: DefaultHandler ) , ) . arc ( ) ; app . run ( ) . await . unwrap ( ) ; Ok ( PyOneBot ( OBApp :: V11 ( app ) ) ) } ) }
just build and run a onebot11 application
just build and run a onebot11 application
py
Python
py
Python