- Enclosing class:
- TdApi
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 Summary
Modifier and TypeFieldDescriptionlong
Chat identifier.static final int
boolean
True, if chat content can't be saved locally, forwarded, or copied. -
Constructor Summary
ConstructorDescriptionChanges the ability of users to save, forward, or copy chat content.ToggleChatHasProtectedContent
(long chatId, boolean hasProtectedContent) Changes the ability of users to save, forward, or copy chat content.Changes the ability of users to save, forward, or copy chat content. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
chatId
public long chatIdChat identifier. -
hasProtectedContent
public boolean hasProtectedContentTrue, 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. ReturnsOk
-
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. ReturnsOk
- Parameters:
chatId
- long Chat identifier.hasProtectedContent
- boolean True, if chat content can't be saved locally, forwarded, or copied.
-
ToggleChatHasProtectedContent
Changes the ability of users to save, forward, or copy chat content. Supported only for basic groups, supergroups and channels. Requires owner privileges. ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-