editChatInviteLink
Edit a non-primary Telegram invite link created by your bot, updating its name, expiry, member limit, or join-request approval; administrator rights are required.
Instructions
Use this method 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. Returns the edited invite link as a ChatInviteLink object.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>",
"invite_link": "<invite_link>"
},
"name": "editChatInviteLink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Invite link name; 0-32 characters | |
| chat_id | Yes | Unique identifier for the target chat or username of the target channel in the format `@username` | |
| expire_date | No | Point in time (Unix timestamp) when the link will expire | |
| invite_link | Yes | The invite link to edit | |
| member_limit | No | The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999 | |
| creates_join_request | No | True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified. |