ToggleChatHasProtectedContent constructor

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

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

Implementation

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