> ## 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.

# Edit Chat Invite Link

Use this action to edit a non-primary invite link created by the bot. 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. |
  | Creates Join Request | True, if users joining the chat via the link need to be approved by chat administrators. If True, member\_limit can't be specified.                                                                                                                                                                                                                                   |
  | Expiration Date      | When the link will expire.                                                                                                                                                                                                                                                                                                                                            |
  | Invite Link          | The invite link to edit.                                                                                                                                                                                                                                                                                                                                              |
  | Invite Link Name     | Invite Link Name. 0-32 characters, this is the name with which the link will be shown in the channel's admin view of invite links.                                                                                                                                                                                                                                    |
  | Member Limit         | The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link. If a user joins and then leaves the channel, the member limit will return to the same as it was before they joined.                                                                                                                           |
</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": false
	}
}
```

## Workflow Library Example

[Edit Chat Invite Link with Telegram and Send Results Via Email](https://library.blinkops.com/workflows/edit-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/edit-chat-invite-link-with-telegram-and-send-results-via-email/canvas" />
</div>
