vaegram 0.2.0

Telegram MTProto client library for users and bots
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::Client;
use crate::session::RateLimiter;

impl Client {
    /// The client's rate limiter, if `ClientBuilder::rate_limits` turned it on: to see how busy it is
    /// (`congestion`), whether a call would wait (`available`, `try_acquire`), or to change a limit while the client
    /// runs (`update_limits`).
    pub fn rate_limiter(&self) -> Option<&RateLimiter> {
        self.0.limiter.as_ref()
    }
}