/// 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,
}