Chat.set_protected_content()

Chat.set_protected_content()

Bound method set_protected_content of Chat.

Use as a shortcut for:

client.set_chat_protected_content(chat_id, enabled)
Parameters

enabled (bool) – Pass True to enable the protected content setting, False to disable.

Example

chat.set_protected_content(enabled)
Returns

bool – On success, True is returned.