ToggleChatHasProtectedContent constructor

const ToggleChatHasProtectedContent({
  1. required int chatId,
  2. required bool hasProtectedContent,
})

Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges

Implementation

const ToggleChatHasProtectedContent({
  required this.chatId,
  required this.hasProtectedContent,
});