lib/tdlib/client_methods.rb
# Changes the ability of users to save, forward, or copy chat content.
# Supported only for basic groups, supergroups and channels.
# Requires owner privileges.
#
# @param chat_id [Integer] Chat identifier.
# @param has_protected_content [Boolean] True, if chat content can't be saved locally, forwarded, or copied.
# @return [TD::Types::Ok]
Changes the ability of users to save, forward, or copy chat content.
Supported only for basic groups, supergroups and channels.
Requires owner privileges.
Changes the ability of users to save forward or copy chat content . Supported only for basic groups supergroups and channels . Requires owner privileges .
def toggle_chat_has_protected_content(chat_id:, has_protected_content:)
    broadcast('@type'                 => 'toggleChatHasProtectedContent',
              'chat_id'               => chat_id,
              'has_protected_content' => has_protected_content)
  end
def toggle_chat_has_protected_content ( chat_id : , has_protected_content : ) broadcast ( '@type' => 'toggleChatHasProtectedContent' , 'chat_id' => chat_id , 'has_protected_content' => has_protected_content ) end
Changes the ability of users to save, forward, or copy chat content.
Changes the ability of users to save forward or copy chat content .
None
TD::Types::Ok
chat_id
None
has_protected_content
True, if chat content can't be saved locally, forwarded, or copied.
True if chat content can ' t be saved locally forwarded or copied .