api.joinChatByInviteLink()
Uses an invite link to add the current user to the chat if possible
Parameters
JoinChatByInviteLinkParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
inviteLink | string | Invite link to use |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'joinChatByInviteLink' | 'error'
airgram: Airgram
request: {
method: 'joinChatByInviteLink'
params: JoinChatByInviteLinkParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}