Airgram

Guides
/
/
Methods

api.joinChatByInviteLink()

Uses an invite link to add the current user to the chat if possible

Parameters JoinChatByInviteLinkParams:

NameTypeDescription
inviteLinkstring 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>
}