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

1.1 KiB

title description image redirect_from
account.contentSettings Sensitive content settings https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/constructors/account_contentSettings.html

Constructor: account.contentSettings

Back to constructors index

Sensitive content settings

Attributes:

Name Type Required Description
sensitive_enabled Bool Optional Whether viewing of sensitive (NSFW) content is enabled
sensitive_can_change Bool Optional Whether the current client can change the sensitive content settings to view NSFW content

Type: account.ContentSettings

Example:

$account.contentSettings = ['_' => 'account.contentSettings', 'sensitive_enabled' => Bool, 'sensitive_can_change' => Bool];

Or, if you're into Lua:

account.contentSettings={_='account.contentSettings', sensitive_enabled=Bool, sensitive_can_change=Bool}