> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke Chat Invite Link

Use this action to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights.

## Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                                                                                                                           |
  | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Chat ID Or Username | Unique identifier for the target chat or username of the target channel (in the format @channelusername). <br />You can easily retrieve a channel's ID from it's web view link at [https://web.telegram.org/](https://web.telegram.org/) - e.g the channel at [https://web.telegram.org/z/#-863152528](https://web.telegram.org/z/#-863152528) has the id -863152528. |
  | Invite Link         | The invite link to edit.                                                                                                                                                                                                                                                                                                                                              |
</div>

## Example Output

```json theme={"dark"}
{
	"ok": true,
	"result": {
		"invite_link": "https://t.me/+weTFwLtkjP00NmU0",
		"name": "second1670440469510",
		"creator": {
			"id": 5927593490,
			"is_bot": true,
			"first_name": "BlinkTests",
			"username": "BlinkOpsBot"
		},
		"creates_join_request": false,
		"is_primary": false,
		"is_revoked": true
	}
}
```

## Workflow Library Example

[Revoke Chat Invite Link with Telegram and Send Results Via Email](https://library.blinkops.com/workflows/revoke-chat-invite-link-with-telegram-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/revoke-chat-invite-link-with-telegram-and-send-results-via-email/canvas" />
</div>
