Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data UserPrivacySettingRule
- = UserPrivacySettingRuleAllowAll
- | UserPrivacySettingRuleAllowContacts
- | UserPrivacySettingRuleAllowBots
- | UserPrivacySettingRuleAllowPremiumUsers
- | UserPrivacySettingRuleAllowUsers { }
- | UserPrivacySettingRuleAllowChatMembers { }
- | UserPrivacySettingRuleRestrictAll
- | UserPrivacySettingRuleRestrictContacts
- | UserPrivacySettingRuleRestrictBots
- | UserPrivacySettingRuleRestrictUsers { }
- | UserPrivacySettingRuleRestrictChatMembers { }
Documentation
data UserPrivacySettingRule Source #
Represents a single rule for managing user privacy settings
UserPrivacySettingRuleAllowAll | A rule to allow all users to do something |
UserPrivacySettingRuleAllowContacts | A rule to allow all contacts of the user to do something |
UserPrivacySettingRuleAllowBots | A rule to allow all bots to do something |
UserPrivacySettingRuleAllowPremiumUsers | A rule to allow all Premium Users to do something; currently, allowed only for userPrivacySettingAllowChatInvites |
UserPrivacySettingRuleAllowUsers | A rule to allow certain specified users to do something |
UserPrivacySettingRuleAllowChatMembers | A rule to allow all members of certain specified basic groups and supergroups to doing something |
UserPrivacySettingRuleRestrictAll | A rule to restrict all users from doing something |
UserPrivacySettingRuleRestrictContacts | A rule to restrict all contacts of the user from doing something |
UserPrivacySettingRuleRestrictBots | A rule to restrict all bots from doing something |
UserPrivacySettingRuleRestrictUsers | A rule to restrict all specified users from doing something |
UserPrivacySettingRuleRestrictChatMembers | A rule to restrict all members of specified basic groups and supergroups from doing something |
Instances
FromJSON UserPrivacySettingRule Source # | |
Defined in TD.Data.UserPrivacySettingRule | |
ToJSON UserPrivacySettingRule Source # | |
Defined in TD.Data.UserPrivacySettingRule toJSON :: UserPrivacySettingRule -> Value # toEncoding :: UserPrivacySettingRule -> Encoding # toJSONList :: [UserPrivacySettingRule] -> Value # | |
Show UserPrivacySettingRule Source # | |
Defined in TD.Data.UserPrivacySettingRule showsPrec :: Int -> UserPrivacySettingRule -> ShowS # show :: UserPrivacySettingRule -> String # showList :: [UserPrivacySettingRule] -> ShowS # | |
Eq UserPrivacySettingRule Source # | |
Defined in TD.Data.UserPrivacySettingRule | |
ShortShow UserPrivacySettingRule Source # | |
Defined in TD.Data.UserPrivacySettingRule |