Airgram

Guides
/
/
Methods

api.getChatInviteLink()

Returns information about an invite link. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links

Parameters GetChatInviteLinkParams:

NameTypeDescription
chatIdnumber Chat identifier
inviteLinkstring Invite link to get
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getChatInviteLink' | 'error'
  airgram: Airgram
  request: {
    method: 'getChatInviteLink'
    params: GetChatInviteLinkParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}