Module tdlight.api

Class TdApi.ToggleChatHasProtectedContent

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function<TdApi.Ok>
it.tdlight.jni.TdApi.ToggleChatHasProtectedContent
Enclosing class:
TdApi

public static final class TdApi.ToggleChatHasProtectedContent extends TdApi.Function<TdApi.Ok>
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 Details

    • chatId

      public long chatId
      Chat identifier.
    • hasProtectedContent

      public boolean hasProtectedContent
      New value of hasProtectedContent.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • ToggleChatHasProtectedContent

      public ToggleChatHasProtectedContent()
      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)
      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 - long Chat identifier.
      hasProtectedContent - boolean New value of hasProtectedContent.
    • ToggleChatHasProtectedContent

      public ToggleChatHasProtectedContent(DataInput input) throws IOException
      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
      Throws:
      IOException
  • Method Details