Layer 220
AccountContentSettings
Sensitive content settings
constructor
account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettings;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| SensitiveEnabled | flags.0?true | Whether viewing of sensitive (NSFW) content is enabled |
| SensitiveCanChange | flags.1?true | Whether the current client can change the sensitive content settings to view NSFW content |
Returns
account.ContentSettingsGogram Example
// Creating AccountContentSettings constructor obj := &tg.AccountContentSettings{ // Optional fields: // SensitiveEnabled: true, // SensitiveCanChange: true, }