editChatSubscriptionInviteLink
Edits an existing subscription invite link created by a bot, updating its name when the bot has can_invite_users administrator rights.
Instructions
Use this method to edit a subscription invite link created by the bot. The bot must have the can_invite_users 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": "editChatSubscriptionInviteLink"
}
}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` | |
| invite_link | Yes | The invite link to edit |