public static class TdApi.ToggleChatHasProtectedContent extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
hasProtectedContent
New value of hasProtectedContent.
|
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public boolean hasProtectedContent
public static final int CONSTRUCTOR
public ToggleChatHasProtectedContent()
Returns Ok
public ToggleChatHasProtectedContent(long chatId,
boolean hasProtectedContent)
Returns Ok
chatId - Chat identifier.hasProtectedContent - New value of hasProtectedContent.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object