Package org.drinkless.tdlib
Class TdApi.ToggleChatHasProtectedContent
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 Summary
Fields Modifier and Type Field Description longchatIdChat identifier.static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanhasProtectedContentTrue, if chat content can't be saved locally, forwarded, or copied.
-
Constructor Summary
Constructors Constructor Description ToggleChatHasProtectedContent()Default constructor for a function, which changes the ability of users to save, forward, or copy chat content.ToggleChatHasProtectedContent(long chatId, boolean hasProtectedContent)Creates a function, which changes the ability of users to save, forward, or copy chat content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-