MadelineProtoDocs/docs/API_docs/constructors/account.contentSettings.md

41 lines
1.1 KiB
Markdown
Raw Normal View History

2020-03-06 12:24:14 +01:00
---
title: account.contentSettings
2020-06-16 17:50:25 +02:00
description: Sensitive content settings
2020-03-06 12:24:14 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
redirect_from: /API_docs/constructors/account_contentSettings.html
---
# Constructor: account.contentSettings
[Back to constructors index](index.md)
2020-06-16 17:50:25 +02:00
Sensitive content settings
2020-03-06 12:24:14 +01:00
### Attributes:
2020-06-16 17:50:25 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|sensitive\_enabled|[Bool](../types/Bool.md) | Optional|Whether viewing of sensitive (NSFW) content is enabled|
|sensitive\_can\_change|[Bool](../types/Bool.md) | Optional|Whether the current client can change the sensitive content settings to view NSFW content|
2020-03-06 12:24:14 +01:00
### Type: [account.ContentSettings](../types/account.ContentSettings.md)
### Example:
```php
$account.contentSettings = ['_' => 'account.contentSettings', 'sensitive_enabled' => Bool, 'sensitive_can_change' => Bool];
```
Or, if you're into Lua:
```lua
account.contentSettings={_='account.contentSettings', sensitive_enabled=Bool, sensitive_can_change=Bool}
```