Interface ToggleChatHasProtectedContent

Changes the ability of users to save, forward, or copy chat content. Requires owner privileges in basic groups, supergroups and channels. Requires Telegram Premium to enable protected content in private chats. Not available in Saved Messages and private chats with bots or support accounts. Request type for Tdjson#toggleChatHasProtectedContent.

interface ToggleChatHasProtectedContent {
    @type: "toggleChatHasProtectedContent";
    chat_id: number;
    has_protected_content?: boolean;
}

Properties

@type: "toggleChatHasProtectedContent"
chat_id: number

Chat identifier.

has_protected_content?: boolean

New value of has_protected_content.