set_chat_protected_content()#
- Client.set_chat_protected_content()#
Set the chat protected content setting.
Usable by Users Bots- Parameters:
chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat.enabled (
bool
) – Pass True to enable the protected content setting, False to disable.
- Returns:
bool
– On success, True is returned.