Airgram

Guides
/
/
Methods

api.checkChatInviteLink()

Checks the validity of an invite link for a chat and returns information about the corresponding chat

Parameters CheckChatInviteLinkParams:

NameTypeDescription
inviteLinkstring Invite link to be checked
Returns ApiResponse interface:
interface ApiResponse {
  _: 'checkChatInviteLink' | 'error'
  airgram: Airgram
  request: {
    method: 'checkChatInviteLink'
    params: CheckChatInviteLinkParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}