api.replacePrimaryChatInviteLink()
Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right
Parameters
ReplacePrimaryChatInviteLinkParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | Chat identifier |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'replacePrimaryChatInviteLink' | 'error'
airgram: Airgram
request: {
method: 'replacePrimaryChatInviteLink'
params: ReplacePrimaryChatInviteLinkParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}