exportChatInviteLink
Generate a new primary invite link for a chat, revoking the previous one. Requires admin rights with can_invite_users permission.
Instructions
Generate a new primary invite link for a chat. Any previously generated primary link is revoked. The bot must be an administrator with can_invite_users rights. Returns the new invite link as String on success.
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>"
},
"name": "exportChatInviteLink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername) |