vaegram 0.3.0

Telegram MTProto client library for users and bots
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Why [`ClientEvent::UpdatesSkipped`](super::ClientEvent::UpdatesSkipped) happened.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum SkipReason {
    /// Too many to fetch: Telegram jumped to its current state, for a channel along with its latest messages.
    TooLong,
    /// Telegram refused to send them, e.g. after the bot left the channel; the error came just before as
    /// `DifferenceFailed`.
    Refused,
    /// Fetching them kept failing.
    GaveUp,
    /// Telegram said a channel had updates (`updateChannelTooLong`) without saying where they start, and the client
    /// keeps no pts for the channel, so there was nowhere to fetch them from. Reported with `from == to == 0`.
    NoPts,
}