public static class TdApi.ToggleChatHasProtectedContent extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
long |
chatId
Chat identifier.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
hasProtectedContent
True, if chat content can't be saved locally, forwarded, or copied.
|
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() |
toString
public 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
- True, if chat content can't be saved locally, forwarded, or copied.public int getConstructor()
getConstructor
in class TdApi.Function