UserPrivacySettingRule

public indirect enum UserPrivacySettingRule : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum

Represents a single rule for managing privacy settings

  • A rule to allow all users to do something

    Declaration

    Swift

    case allowAll
  • A rule to allow all of a user’s contacts to do something

    Declaration

    Swift

    case allowContacts
  • A rule to allow certain specified users to do something

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

    Declaration

    Swift

    case allowUsers(userIds: [Int32])
  • A rule to allow all members of certain specified basic groups and supergroups to doing something

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

    Declaration

    Swift

    case allowChatMembers(chatIds: [Int53])
  • A rule to restrict all users from doing something

    Declaration

    Swift

    case restrictAll
  • A rule to restrict all contacts of a user from doing something

    Declaration

    Swift

    case restrictContacts
  • A rule to restrict all specified users from doing something

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

    Declaration

    Swift

    case restrictUsers(userIds: [Int32])
  • A rule to restrict all members of specified basic groups and supergroups from doing something

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

    Declaration

    Swift

    case restrictChatMembers(chatIds: [Int53])