Class TdApi.ToggleChatHasProtectedContent

  • Enclosing class:
    TdApi

    public static class TdApi.ToggleChatHasProtectedContent
    extends TdApi.Function
    Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges.

    Returns Ok

    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • hasProtectedContent

        public boolean hasProtectedContent
        True, if chat content can't be saved locally, forwarded, or copied.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ToggleChatHasProtectedContent

        public ToggleChatHasProtectedContent()
        Default constructor for a function, which changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges.

        Returns Ok

      • ToggleChatHasProtectedContent

        public ToggleChatHasProtectedContent​(long chatId,
                                             boolean hasProtectedContent)
        Creates a function, which changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges.

        Returns Ok

        Parameters:
        chatId - Chat identifier.
        hasProtectedContent - True, if chat content can't be saved locally, forwarded, or copied.