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
16
/// Which block list a block, unblock or listing call works on.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
#[non_exhaustive]
pub enum BlockList {
    /// People who can't message the account, and can't see its stories either.
    #[default]
    Main,
    /// People who can't see the account's stories but can still message it.
    Stories,
}

impl BlockList {
    pub(crate) fn my_stories_from(self) -> bool {
        self == BlockList::Stories
    }
}