haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.UserPrivacySettingRule

Synopsis

Documentation

data UserPrivacySettingRule Source #

Represents a single rule for managing user privacy settings

Constructors

UserPrivacySettingRuleAllowAll

A rule to allow all users to do something

UserPrivacySettingRuleAllowContacts

A rule to allow all contacts of the user 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

Fields

  • user_ids :: Maybe [Int]

    The user identifiers, total number of users in all rules must not exceed 1000

UserPrivacySettingRuleAllowChatMembers

A rule to allow all members of certain specified basic groups and supergroups to doing something

Fields

  • chat_ids :: Maybe [Int]

    The chat identifiers, total number of chats in all rules must not exceed 20

UserPrivacySettingRuleRestrictAll

A rule to restrict all users from doing something

UserPrivacySettingRuleRestrictContacts

A rule to restrict all contacts of the user from doing something

UserPrivacySettingRuleRestrictUsers

A rule to restrict all specified users from doing something

Fields

  • user_ids :: Maybe [Int]

    The user identifiers, total number of users in all rules must not exceed 1000

UserPrivacySettingRuleRestrictChatMembers

A rule to restrict all members of specified basic groups and supergroups from doing something

Fields

  • chat_ids :: Maybe [Int]

    The chat identifiers, total number of chats in all rules must not exceed 20