Module teloxide_core::adaptors

source ·
Expand description

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.

Re-exports

pub use auto_send::AutoSend;
Deprecated
pub use cache_me::CacheMe;
pub use erased::ErasedRequester;
pub use throttle::Throttle;
pub use trace::Trace;

Modules

auto_sendDeprecatedauto_send
AutoSend bot adaptor which used to allow sending a request without calling send.
cache_mecache_me
CacheMe bot adaptor which caches GetMe requests.
erasederased
ErasedRequester bot adaptor which allows to erase type of Requester.
throttlethrottle
Throttle bot adaptor which allows automatically throttle when hitting API limits.
tracetrace_adaptor
Trace bot adaptor which traces requests.

Structs

Default parse mode adaptor, see RequesterExt::parse_mode.