Airgram

Guides
/
/
Methods

api.processChatJoinRequests()

Handles all pending join requests for a given link in a chat

Parameters ProcessChatJoinRequestsParams:

NameTypeDescription
chatIdnumber Chat identifier
inviteLinkstring Invite link for which to process join requests. If empty, all join requests will be processed. Requires administrator privileges and can_invite_users right in the chat for own links and owner privileges for other links
approveboolean True, if the requests are approved. Otherwise the requests are declived
Returns ApiResponse interface:
interface ApiResponse {
  _: 'processChatJoinRequests' | 'error'
  airgram: Airgram
  request: {
    method: 'processChatJoinRequests'
    params: ProcessChatJoinRequestsParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}