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:
Message|bool– On success, a service message will be returned (when applicable), otherwise, in case a message object couldn’t be returned, True is returned.