mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-14 23:46:54 +01:00
24 lines
499 B
Markdown
24 lines
499 B
Markdown
---
|
|
title: setPrivacy
|
|
description: Changes privacy settings
|
|
---
|
|
## Method: setPrivacy
|
|
[Back to methods index](index.md)
|
|
|
|
|
|
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
|
|
|
|
|
|
Changes privacy settings
|
|
|
|
### Params:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|key|[PrivacyKey](../types/PrivacyKey.md) | Yes|Privacy key|
|
|
|rules|[privacyRules](../constructors/privacyRules.md) | Yes|New privacy rules|
|
|
|
|
|
|
### Return type: [Ok](../types/Ok.md)
|
|
|