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
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Chat identifier |
inviteLink | string | 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>
}