account.ContentSettings

class pyrogram.raw.types.account.ContentSettings

Sensitive content settings

Constructor of ContentSettings.

Details:
  • Layer: 223

  • ID: 57E28221

Parameters:
  • 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

Functions:

This object can be returned by 1 function.

account.GetContentSettings

Get sensitive content settings

TL Schema

account.contentSettings#57e28221
flags:#
sensitive_enabled:flags.0?true
sensitive_can_change:flags.1?true

= account.ContentSettings

Parameter Tree

ContentSettings
├── sensitive_enabledtrue (optional)
└── sensitive_can_changetrue (optional)

Example

ContentSettings(
)