Enum rtdlib::types::SupergroupMembersFilter
source · [−]pub enum SupergroupMembersFilter {
Administrators(SupergroupMembersFilterAdministrators),
Banned(SupergroupMembersFilterBanned),
Bots(SupergroupMembersFilterBots),
Contacts(SupergroupMembersFilterContacts),
Mention(SupergroupMembersFilterMention),
Recent(SupergroupMembersFilterRecent),
Restricted(SupergroupMembersFilterRestricted),
Search(SupergroupMembersFilterSearch),
// some variants omitted
}
Expand description
Specifies the kind of chat members to return in getSupergroupMembers
Variants
Administrators(SupergroupMembersFilterAdministrators)
Returns the owner and administrators
Banned(SupergroupMembersFilterBanned)
Returns users banned from the supergroup or channel; can be used only by administrators
Bots(SupergroupMembersFilterBots)
Returns bot members of the supergroup or channel
Contacts(SupergroupMembersFilterContacts)
Returns contacts of the user, which are members of the supergroup or channel
Mention(SupergroupMembersFilterMention)
Returns users which can be mentioned in the supergroup
Recent(SupergroupMembersFilterRecent)
Returns recently active users in reverse chronological order
Restricted(SupergroupMembersFilterRestricted)
Returns restricted supergroup members; can be used only by administrators
Search(SupergroupMembersFilterSearch)
Used to search for supergroup or channel members via a (string) query
Implementations
pub fn on_administrators<F: FnOnce(&SupergroupMembersFilterAdministrators)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<SupergroupMembersFilter, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<SupergroupMembersFilter, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for SupergroupMembersFilter
impl Send for SupergroupMembersFilter
impl Sync for SupergroupMembersFilter
impl Unpin for SupergroupMembersFilter
impl UnwindSafe for SupergroupMembersFilter
Blanket Implementations
Mutably borrows from an owned value. Read more