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

  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • requestMessageId

      public long requestMessageId
      Identifier of the message with the request. The message must be incoming and has content of the type messageChatHasProtectedContentDisableRequested.
    • approve

      public boolean approve
      Pass true to approve the request; pass false to reject the request.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier 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.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR