Package org.drinkless.tdlib
Class TdApi.ProcessChatHasProtectedContentDisableRequest
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.ProcessChatHasProtectedContentDisableRequest
- Enclosing class:
TdApi
public static class TdApi.ProcessChatHasProtectedContentDisableRequest
extends TdApi.Function<TdApi.Ok>
Processes request to disable hasProtectedContent in a chat.
Returns Ok
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.Function
TdApi.Function.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanPass true to approve the request; pass false to reject the request.longChat identifier.static final intIdentifier uniquely determining type of the object.longIdentifier of the message with the request. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which processes request to disable hasProtectedContent in a chat.ProcessChatHasProtectedContentDisableRequest(long chatId, long requestMessageId, boolean approve) Creates a function, which processes request to disable hasProtectedContent in a chat. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdChat identifier. -
requestMessageId
public long requestMessageIdIdentifier of the message with the request. The message must be incoming and has content of the type messageChatHasProtectedContentDisableRequested. -
approve
public boolean approvePass true to approve the request; pass false to reject the request. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ProcessChatHasProtectedContentDisableRequest
public ProcessChatHasProtectedContentDisableRequest()Default constructor for a function, which processes request to disable hasProtectedContent in a chat.Returns
Ok -
ProcessChatHasProtectedContentDisableRequest
public ProcessChatHasProtectedContentDisableRequest(long chatId, long requestMessageId, boolean approve) Creates a function, which processes request to disable hasProtectedContent in a chat.Returns
Ok- Parameters:
chatId- Chat identifier.requestMessageId- Identifier of the message with the request. The message must be incoming and has content of the type messageChatHasProtectedContentDisableRequested.approve- Pass true to approve the request; pass false to reject the request.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Function<TdApi.Ok>- Returns:
- this.CONSTRUCTOR
-