mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 15:01:45 +01:00
8bbe0ecf1a
It has become useless a while ago.
47 lines
1.2 KiB
Rust
47 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.
|
|
//!
|
|
//! [`Requester`]: crate::requests::Requester
|
|
|
|
/// [`CacheMe`] bot adaptor which caches [`GetMe`] requests.
|
|
///
|
|
/// [`CacheMe`]: cache_me::CacheMe
|
|
/// [`GetMe`]: crate::payloads::GetMe
|
|
#[cfg(feature = "cache_me")]
|
|
pub mod cache_me;
|
|
|
|
/// [`Trace`] bot adaptor which traces requests.
|
|
///
|
|
/// [`Trace`]: trace::Trace
|
|
#[cfg(feature = "trace_adaptor")]
|
|
pub mod trace;
|
|
|
|
/// [`ErasedRequester`] bot adaptor which allows to erase type of
|
|
/// [`Requester`].
|
|
///
|
|
/// [`ErasedRequester`]: erased::ErasedRequester
|
|
/// [`Requester`]: crate::requests::Requester
|
|
#[cfg(feature = "erased")]
|
|
pub mod erased;
|
|
|
|
/// [`Throttle`] bot adaptor which allows automatically throttle when hitting
|
|
/// API limits.
|
|
///
|
|
/// [`Throttle`]: throttle::Throttle
|
|
#[cfg(feature = "throttle")]
|
|
pub mod throttle;
|
|
|
|
mod parse_mode;
|
|
|
|
#[cfg(feature = "cache_me")]
|
|
pub use cache_me::CacheMe;
|
|
#[cfg(feature = "erased")]
|
|
pub use erased::ErasedRequester;
|
|
#[cfg(feature = "throttle")]
|
|
pub use throttle::Throttle;
|
|
#[cfg(feature = "trace_adaptor")]
|
|
pub use trace::Trace;
|
|
|
|
pub use parse_mode::DefaultParseMode;
|