Module tdlight.api

Class TdApi.ProcessChatJoinRequests

Enclosing class:
TdApi

public static final class TdApi.ProcessChatJoinRequests extends TdApi.Function<TdApi.Ok>
Handles all pending join requests for a given link in a chat. Returns Ok
  • Field Details

    • chatId

      public long chatId
      Chat identifier.
    • approve

      public boolean approve
      Pass true to approve all requests; pass false to decline them.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • ProcessChatJoinRequests

      public ProcessChatJoinRequests()
      Handles all pending join requests for a given link in a chat. Returns Ok
    • ProcessChatJoinRequests

      public ProcessChatJoinRequests(long chatId, String inviteLink, boolean approve)
      Handles all pending join requests for a given link in a chat. Returns Ok
      Parameters:
      chatId - long Chat identifier.
      inviteLink - String Invite link for which to process join requests. If empty, all join requests will be processed. Requires administrator privileges and canInviteUsers right in the chat for own links and owner privileges for other links.
      approve - boolean Pass true to approve all requests; pass false to decline them.
    • ProcessChatJoinRequests

      public ProcessChatJoinRequests(DataInput input) throws IOException
      Handles all pending join requests for a given link in a chat. Returns Ok
      Throws:
      IOException
  • Method Details