25 lines
580 B
Markdown

---
title: setPrivacy
description: Changes privacy settings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: setPrivacy
[Back to methods index](index.md)
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Changes privacy settings
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|key|[PrivacyKey](../types/PrivacyKey.md) | Privacy key | Yes|
|rules|[privacyRules](../constructors/privacyRules.md) | New privacy rules | Yes|
### Return type: [Ok](../types/Ok.md)