Airgram

Guides
/
/
Methods

api.getChatInviteLinks()

Returns invite links for a chat created by specified administrator. Requires administrator privileges and can_invite_users right in the chat to get own links and owner privileges to get other links

Parameters GetChatInviteLinksParams:

NameTypeDescription
chatIdnumber Chat identifier
creatorUserIdnumber User identifier of a chat administrator. Must be an identifier of the current user for non-owner
isRevokedboolean Pass true if revoked links needs to be returned instead of active or expired
offsetDatenumber Creation date of an invite link starting after which to return invite links; use 0 to get results from the beginning
offsetInviteLinkstring Invite link starting after which to return invite links; use empty string to get results from the beginning
limitnumber The maximum number of invite links to return; up to 100
Returns ApiResponse interface:
interface ApiResponse {
  _: 'getChatInviteLinks' | 'error'
  airgram: Airgram
  request: {
    method: 'getChatInviteLinks'
    params: GetChatInviteLinksParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}