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
      True, if chat content can't be saved locally, forwarded, or copied.
    • 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 True, if chat content can't be saved locally, forwarded, or copied.
    • 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