2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: setPrivacy
|
|
|
|
description: Changes privacy settings
|
|
|
|
---
|
|
|
|
## Method: setPrivacy
|
|
|
|
[Back to methods index](index.md)
|
|
|
|
|
|
|
|
|
2017-06-06 18:39:21 +02:00
|
|
|
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Changes privacy settings
|
|
|
|
|
|
|
|
### Params:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
2017-08-20 11:05:56 +02:00
|
|
|
|----------|---------------|----------|-------------|
|
2017-03-11 19:54:51 +01:00
|
|
|
|key|[PrivacyKey](../types/PrivacyKey.md) | Yes|Privacy key|
|
2017-09-29 15:50:59 +02:00
|
|
|
|rules|[privacyRules](../constructors/privacyRules.md) | Yes|New privacy rules|
|
2017-03-11 19:54:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
### Return type: [Ok](../types/Ok.md)
|
|
|
|
|