teloxide/src/prelude.rs

23 lines
604 B
Rust
Raw Normal View History

2020-01-29 19:11:52 +01:00
//! Commonly used items.
pub use crate::{
2020-01-29 23:54:40 +01:00
dispatching::{
2020-02-04 16:38:25 +01:00
dialogue::{
exit, next, DialogueDispatcher, DialogueStage, DialogueWithCx,
GetChatId, Transition, TransitionIn, TransitionOut,
2020-02-02 17:32:27 +01:00
},
Dispatcher, DispatcherHandlerRx, DispatcherHandlerRxExt, UpdateWithCx,
2020-01-29 23:54:40 +01:00
},
2020-02-18 23:54:41 +01:00
error_handlers::{LoggingErrorHandler, OnError},
2020-01-29 23:54:40 +01:00
requests::{Request, ResponseResult},
2020-02-13 09:55:46 +01:00
types::{Message, Update},
2020-07-26 00:34:11 +02:00
Bot, RequestError,
2020-01-29 19:11:52 +01:00
};
2020-02-17 23:19:16 +01:00
2020-07-25 23:10:48 +02:00
#[cfg(feature = "frunk")]
2020-07-26 00:09:57 +02:00
pub use crate::up_state::UpState;
2020-07-25 23:10:48 +02:00
pub use tokio::sync::mpsc::UnboundedReceiver;
2020-02-17 23:19:16 +01:00
pub use futures::StreamExt;