teloxide/src/prelude.rs
2020-07-26 23:47:02 +06:00

22 lines
604 B
Rust

//! Commonly used items.
pub use crate::{
dispatching::{
dialogue::{
exit, next, DialogueDispatcher, DialogueStage, DialogueWithCx, GetChatId, Transition,
TransitionIn, TransitionOut,
},
Dispatcher, DispatcherHandlerRx, DispatcherHandlerRxExt, UpdateWithCx,
},
error_handlers::{LoggingErrorHandler, OnError},
requests::{Request, ResponseResult},
types::{Message, Update},
Bot, RequestError,
};
#[cfg(feature = "frunk")]
pub use crate::up_state::UpState;
pub use tokio::sync::mpsc::UnboundedReceiver;
pub use futures::StreamExt;