mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-24 09:16:12 +01:00
35 lines
1.2 KiB
Rust
35 lines
1.2 KiB
Rust
//! Wrappers altering functionality of a bot.
|
|
//!
|
|
//! Bot adaptors are very similar to the [`Iterator`] adaptors: they are bots
|
|
//! wrapping other bots to alter existing or add new functionality.
|
|
//!
|
|
//! E.g. [`AutoSend`] allows `await`ing requests directly, no need to to use
|
|
//! `.send()`.
|
|
//!
|
|
//! [`Requester`]: crate::requests::Requester
|
|
|
|
#[cfg(feature = "auto_send")]
|
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "auto_send")))]
|
|
pub mod auto_send;
|
|
#[cfg(feature = "cache_me")]
|
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "cache_me")))]
|
|
pub mod cache_me;
|
|
#[cfg(feature = "throttle")]
|
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "throttle")))]
|
|
pub mod throttle;
|
|
|
|
mod parse_mode;
|
|
|
|
#[cfg(feature = "auto_send")]
|
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "auto_send")))]
|
|
pub use auto_send::AutoSend;
|
|
#[cfg(feature = "cache_me")]
|
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "cache_me")))]
|
|
pub use cache_me::CacheMe;
|
|
#[cfg(feature = "throttle")]
|
|
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "throttle")))]
|
|
pub use throttle::Throttle;
|
|
|
|
pub use parse_mode::DefaultParseMode;
|
|
|
|
// FIXME: move default `parse_mode` to adaptor
|