teloxide/src/prelude.rs

34 lines
1,014 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
},
2020-07-30 15:25:56 +02: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},
2021-03-05 22:18:03 +01:00
respond,
};
pub use teloxide_core::{
adaptors::AutoSend,
types::{
CallbackQuery, ChatMemberUpdated, ChosenInlineResult, InlineQuery, Message, Poll,
PollAnswer, PreCheckoutQuery, ShippingQuery,
},
2020-01-29 19:11:52 +01:00
};
2020-02-17 23:19:16 +01:00
2021-03-15 04:22:10 +01:00
#[doc(inline)]
pub use teloxide_core::prelude::*;
2020-07-25 23:10:48 +02:00
#[cfg(feature = "frunk")]
// FIXME(waffle): use `docsrs` here when issue with combine is resolved <https://github.com/teloxide/teloxide/pull/305#issuecomment-716172103>
#[cfg_attr(all(teloxide_docsrs, feature = "nightly"), doc(cfg(feature = "frunk")))]
2020-07-28 19:48:46 +02:00
pub use crate::utils::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;