api.processChatJoinRequests()
Handles all pending join requests for a given link in a chat
Parameters
ProcessChatJoinRequestsParams:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
chatId | number | Chat identifier |
inviteLink | string | 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 |
approve | boolean | 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>
}