SetContentSettingsRequest
Only users can use this request. See code examples.
---functions--- account.setContentSettings#b574b16b flags:# sensitive_enabled:flags.0?true = Bool
Returns
Bool |
This type has no instances available.
Parameters
sensitive_enabled | flag | This argument defaults to None and can be omitted. |
Known RPC errors
This request can cause 1 known error:
SensitiveChangeForbiddenError | Your sensitive content settings cannot be changed at this time. |
You can import these from telethon.errors
.
Example
from telethon.sync import TelegramClient from telethon import functions, types with TelegramClient(name, api_id, api_hash) as client: result = client(functions.account.SetContentSettingsRequest( sensitive_enabled=True )) print(result)