mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
Fix the lost stuff
This commit is contained in:
parent
56c1c55f88
commit
968c988f7f
4 changed files with 10 additions and 5 deletions
|
@ -31,9 +31,6 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||
.branch(Update::filter_inline_query().endpoint(inline_query_handler));
|
||||
|
||||
Dispatcher::builder(bot, handler).build().setup_ctrlc_handler().dispatch().await;
|
||||
|
||||
log::info!("Closing bot... Goodbye!");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
@ -4,5 +4,4 @@ mod commands_repl;
|
|||
mod repl;
|
||||
|
||||
pub use commands_repl::{commands_repl, commands_repl_with_listener};
|
||||
//pub use dialogues_repl::{dialogues_repl, dialogues_repl_with_listener};
|
||||
pub use repl::{repl, repl_with_listener};
|
||||
|
|
|
@ -69,3 +69,12 @@ where
|
|||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn repl_is_send() {
|
||||
let bot = crate::Bot::new("");
|
||||
let repl = crate::repl(bot, |_| async { crate::respond(()) });
|
||||
assert_send(&repl);
|
||||
|
||||
fn assert_send(_: &impl Send) {}
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
// https://github.com/rust-lang/rust-clippy/issues/7422
|
||||
#![allow(clippy::nonstandard_macro_braces)]
|
||||
|
||||
#[cfg(all(feature = "ctrlc_handler"))]
|
||||
#[cfg(feature = "ctrlc_handler")]
|
||||
pub use dispatching::repls::{
|
||||
commands_repl, commands_repl_with_listener, repl, repl_with_listener,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue